summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-10-06 11:18:11 +0800
committerGitHub <[email protected]>2017-10-06 11:18:11 +0800
commit930f36ecd228c58249596e9c05ad92510e8bd952 (patch)
tree40d7de6ee92ca267c9c0547ea6caf67ecca58b6c
parent0b030d8b756a80080937c13b10635264aed95a0c (diff)
Update README.md
-rw-r--r--bsp/AE210P/README.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/bsp/AE210P/README.md b/bsp/AE210P/README.md
index 8d7dc1da04..8a396946cf 100644
--- a/bsp/AE210P/README.md
+++ b/bsp/AE210P/README.md
@@ -7,15 +7,16 @@ E-Mail : Archer Zhang <[email protected]>
1. 在bsp目录下,添加AE210P目录,这是Andes AE210P EVB(N1068A)的主目录;
2. 在libcpu目录下,添加nds32目录,这是Andes N10系列Core的体系目录;
3. 由于编译器的原因,修改了finsh.h文件的Line:74 - 75,如下
-
+```c
#if !(defined(__GNUC__) && defined(__x86_64__))
//typedef unsigned int size_t; // 注释这个typedef
#include <stddef.h> // 添加两个头文件包含
#include <string.h>
#else
+```
4. 由于串口未使用中断接收,而是使用了查询接收,所以修改了shell.c文件,如下
-
+```c
a. Line:316~317
//rt_device_set_rx_indicate(shell->device, finsh_rx_ind);
//rt_device_open(shell->device, (RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM | RT_DEVICE_FLAG_INT_RX));
@@ -27,15 +28,15 @@ E-Mail : Archer Zhang <[email protected]>
c. Line:553,添加CPU占用的释放
rt_thread_delay(1); // 或者rt-schedule();
+```
## 工程管理
-1. 该工程使用Makefile管理,Makefile即文件AE210P/Makefile;
-
- 编译如下:
-
+1. 该工程使用Makefile管理,Makefile即文件AE210P/Makefile。编译如下:
+```bash
make APP=rtthread AE210P=1 USING_CLI=1 DEBUG=1 all
make APP=rtthread AE210P=1 USING_CLI=1 DEBUG=1 clean
+```
## Tool Chain/IDE