int main(void) { test_config(); SD_test(); while (1) {} }
int main() { FATFS fs; UINT br; char rd_buff[0x1e] = {0}; //Global interrupt enable. /*CyGlobalIntEnable;*/ SD_test(); /* Open a text file and type it */ if (pf_mount(&fs) == FR_OK && pf_open("HELLO.TXT") == FR_OK) { pf_read(rd_buff, 0x1e, &br); /* Direct output to the console */ } for (;;) ; }