|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 DuBois_1wwe 于 2022-2-14 10:49 编辑
9 H1 j5 G( U; p* T* t e2 y O: c( {, v% }; H: ?* D
- #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); }
- }3 b+ q1 P1 Z: P! f R
) t: X- P& b/ E P* ]
" @4 }% w2 h/ T' O$ z! m
' `' _4 s% H& c! \9 M9 M: s都整两天了,用DNW打开串口后,应该出现“Sky2440 UART Console test”,然后输入DNW显示相应的输入内容,现在DNW什么都不显示,大家给看看什么地方出问题了& ^1 L; ?0 k" ]- n' d5 P5 f
|
|