main.c
来自「s3c2440 串口接收模块设计。开发环境在ADS1.2。」· C语言 代码 · 共 35 行
C
35 行
#include "def.h"#include "option.h"#include "2440addr.h"#include "2440lib.h" void Main(void){ char str[50]; ChangeMPllValue(110,3,1); Uart_Init(PCLK, 115200); Uart_Init(); //uart1, 115200,8 in 1, to be completed in uart.c Uart_Printf("\n\rEx02. Test Uart receive \n\r"); Delay(10000); while(1) { Uart_Printf("Please input your str!\n\n"); Uart_GetString(str); Uart_Printf("\n*****Your input_str!*****\n"); Uart_Printf(str); Led_Display(1); Delay(10000000); Led_Display(2); Delay(10000000); } // end of while(...)} // end of main(...)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?