|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 DuBois_1wwe 于 2022-2-14 10:49 编辑 - k1 P3 I0 `8 {# _* u
1 O" q6 j, Z0 t4 g6 _# @
- #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); }
- }( P+ H+ F, s4 W: N9 B1 z: D# I
3 i( q3 `* `1 @8 w# i2 i% G! c; r r: ?+ h
7 S" e$ F. u! m/ O- q! Q
都整两天了,用DNW打开串口后,应该出现“Sky2440 UART Console test”,然后输入DNW显示相应的输入内容,现在DNW什么都不显示,大家给看看什么地方出问题了; c; s; [1 i9 Y/ e
|
|