|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 DuBois_1wwe 于 2022-2-14 10:49 编辑 - `- F0 g/ e5 h, p% U. \
6 D8 V+ w) o# Z6 s9 t7 V) P1 V7 }- #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); }
- }
2 ]* i3 B" W: U' @; T 9 C- V4 c0 `6 V, [; m
' z9 a6 b: Q8 Z% T0 M7 o
* g" }/ y' `0 V; Q% U9 t
都整两天了,用DNW打开串口后,应该出现“Sky2440 UART Console test”,然后输入DNW显示相应的输入内容,现在DNW什么都不显示,大家给看看什么地方出问题了: @0 [4 }8 Y/ B5 c+ D a# g
|
|