CC2530
使用想使用printf
,则需要定义putchar
:
#include "stdio.h"
__near_func int putchar ( int c ) {
UTX0IF = 0;
U0DBUF = ( char ) c;
while ( UTX0IF == 0 );
return ( c );
}
2023-10-22 21:27:04
CC2530
使用想使用printf
,则需要定义putchar
:
#include "stdio.h"
__near_func int putchar ( int c ) {
UTX0IF = 0;
U0DBUF = ( char ) c;
while ( UTX0IF == 0 );
return ( c );
}