/ ******************************************************************** * Function : 该文件可用作模块儿化编程作为MSP430G2553 的调试文件,该文 * 件实现 * 了在串口终端实现标准化输出函数Printf 函数
* ********************************************************************/ #include #include #include #include "uart
h" / ******************************************************************** *静态函数声明 * ********************************************************************/ static void Vs_Printf(char *s,char *format,va_list arg); static void IntToString(int temp,char *pchar); / ******************************************************************** * 函数名 : UartInit * 函数功能 : 初始化msp430g2553 的USCI 寄存器,使其工作在UART 模式 * 形参 : 无 * 返回值 : 无 * ********************************************************************/ void UartInit() { / *****************************