CC2530
使用想使用printf
,则需要定义putchar
:
#include "stdio.h"
__near_func int putchar ( int c ) {
UTX0IF = 0;
U0DBUF = ( char ) c;
while ( UTX0IF == 0 );
return ( c );
}
标签:__,putchar,重定向,int,UTX0IF,CC2530,printf
来源: https://blog.csdn.net/fukangwei_lite/article/details/120119649