- #include "def.h"
- #define GLOBAL_CLK
- #include "Option.h"
- #include "2440addr.h"
- #include "2440lib.h"
- #include "2440slib.h"
- void Main(void){
- char buffer[256];
- memcpy((unsigned char *)0x0,(unsigned char *)0x30000000,0x1000);
- ChangeMPllValue(92,4,1); //定义时钟200M
- ChangeClockDivider(1,1);
- Port_Init();
- Uart_Init(0,115200);
- Uart_Select(0);
- DebugOut("
Sky2440 UART Console test
");
-
- while(1) {
- Uart_Printf("Please,press enter later input string
");
- Uart_GetString(buffer);
- Uart_Printf("you input string:%s
",buffer); }
- }
复制代码
都整两天了,用DNW打开串口后,应该出现“Sky2440 UART Console test”,然后输入DNW显示相应的输入内容,现在DNW什么都不显示,大家给看看什么地方出问题了
一周热门 更多>