|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 DuBois_1wwe 于 2022-2-14 10:49 编辑 7 H w" y1 E4 {1 g% X( g
3 r4 s: s* Q5 L7 W8 J$ }
- #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("\nSky2440 UART Console test\n");
- while(1) {
- Uart_printf("Please,press enter later input string\n");
- Uart_GetString(buffer);
- Uart_Printf("you input string:%s\r\n",buffer); }
- }
' T3 O2 c& e' r4 b$ F% Z9 O # x8 V) A" Z% \" n* Z$ R7 C
5 c" U. m" v$ l1 Q* _9 ^- c- r6 L
/ F* D6 q; e; U; n2 d
都整两天了,用DNW打开串口后,应该出现“Sky2440 UART Console test”,然后输入DNW显示相应的输入内容,现在DNW什么都不显示,大家给看看什么地方出问题了
' I* k$ T) T( V7 N" G |
|