|
#pragma import(__use_no_semihosting)
//标准库需要的支持函数
struct __FILE
{
int handle;
};
FILE __stdout;
//定义_sys_exit()以避免使用半主机模式
void _sys_exit(int x)
{
x = x;
}
//重定义fputc函数
int fputc(int ch, FILE *f)
{
FL_UART_WriteTXBuff(UART0, (uint8_t)ch);
while(FL_UART_IsActiveFlag_TXBuffEmpty(UART0) != SET);
return ch;
}
例程中这个并实现不了,想问一下我是哪里弄错了?
|
|