/** * * Main function to execute the Flash read write example. * * @param None * * @return XST_SUCCESS if successful else XST_FAILURE. * * @note None. * ******************************************************************************/ int main(void) { int Status; Status = FlashReadWriteExample(); if(Status != XST_SUCCESS) { return XST_FAILURE; } return XST_SUCCESS; }
/** * * Main function to execute the Flash read write example. * * @param None * * @return XST_SUCCESS if successful else XST_FAILURE. * * @note None. * ******************************************************************************/ int main(void) { int Status; Status = FlashReadWriteExample(); if(Status != XST_SUCCESS) { xil_printf("Flash Read/Write Test Fail\n\r"); return XST_FAILURE; } xil_printf("Flash Read/Write Test Pass\n\r"); return XST_SUCCESS; }