" 串口打印信息 "
扫描二维码
随时随地手机看文章
#include "..\inc\config.h"void Main(void){Target_Init(); //目标板初始化,在target.c中定义 Delay(10); //串口0输出 Uart_Printf(0,"***********************\n"); Uart_Printf(0,"欢迎使用ADS开发环境\n"); Uart_Printf(0,"***********************\n"); Uart_Printf(0,"\n"); while(1) { Uart_Printf(0,"Hello world!\n"); } while(1);}
说来惭愧,完了这么久的ARM还是玩串口,