CC2530的printf重定向

  CC2530使用想使用printf,则需要定义putchar

#include "stdio.h"

__near_func int putchar ( int c ) {
    UTX0IF = 0;
    U0DBUF = ( char ) c;
    while ( UTX0IF == 0 );
    return ( c );
}
上一篇:CF1562


下一篇:QUOTED_IDENTIFIER 选项对 index 的影响