/** * * Main function to execute the Flash protection example. * * @param None * * @return XST_SUCCESS if successful else XST_FAILURE. * * @note None. * ******************************************************************************/ int main(void) { int Status; Status = FlashProtectionExample(); if(Status != XST_SUCCESS) { return XST_FAILURE; } return XST_SUCCESS; }
int hello_flash() { int Status; /* * Print Test Section Title. */ xil_printf("\n\r********************************************************"); xil_printf("\n\r********************************************************"); xil_printf("\n\r** KC705 - FLASH Test **"); xil_printf("\n\r********************************************************"); xil_printf("\n\r********************************************************\r\n"); Status = FlashProtectionExample(); if (Status) { xil_printf("Flash test failed (%d)\r\n", Status); } return 0; }