函数如下SL_SelfTest_Flash(FLASH_ECC_TEST_MODE_1BIT, TRUE, &failInfoFlash);
定义如下boolean SL_SelfTest_Flash (SL_SelfTestType testType, boolean bMode, SL_SelfTest_Result * flash_stResult);
请问这个函数实现什么功能,另外我重定向printf函数之后调用printf程序遇到上面那个函数程序就会死掉,请问是我重定向出错了吗?
其次,我printf重定向之后可以输出字符串 例如printf("welcome");可以在串口上成功显示,但输出某个变量时则无法输出,例如 printf("%d\r\n",i);则什么都不显示,这是因为我重定向错误还是因为CCS哪里没有配置好?
附上我重定向的函数:
int fputc(int ch, FILE *f)
{
sciSendByte(sciREG1, (unsigned char)ch);
while ((sciREG1->FLR & 0x4) == 4);
return (ch);
}
恳请各位不吝赐教!