From aaaa5f26e665ffd4282646da6e4de60e17f9ce00 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Fri, 6 Oct 2017 11:10:12 +0800 Subject: [PATCH] Update and rename bsp/AE210P/readme/readme.txt to bsp/AE210P/README.md --- bsp/AE210P/README.md | 50 ++++++++++++++++++++++++++++++++++++ bsp/AE210P/readme/readme.txt | 49 ----------------------------------- 2 files changed, 50 insertions(+), 49 deletions(-) create mode 100644 bsp/AE210P/README.md delete mode 100644 bsp/AE210P/readme/readme.txt diff --git a/bsp/AE210P/README.md b/bsp/AE210P/README.md new file mode 100644 index 0000000000..0abf8a878b --- /dev/null +++ b/bsp/AE210P/README.md @@ -0,0 +1,50 @@ +Andes Maintainer: ** It's a very early and draft porting yet. ** + +E-Mail : Archer Zhang + +## 文件(夹)添加和修改 + +1. 在bsp目录下,添加AE210P目录,这是Andes AE210P EVB(N1068A)的主目录; +2. 在libcpu目录下,添加nds32目录,这是Andes N10系列Core的体系目录; +3. 由于编译器的原因,修改了finsh.h文件的Line:74 - 75,如下 + + #if !(defined(__GNUC__) && defined(__x86_64__)) + //typedef unsigned int size_t; // 注释这个typedef + #include // 添加两个头文件包含 + #include + #else + +4. 由于串口未使用中断接收,而是使用了查询接收,所以修改了shell.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)); + rt_device_open(shell->device, (RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM)); + + b. Line:326,注释该行 + // if (rt_sem_take(&shell->rx_sem, RT_WAITING_FOREVER) != RT_EOK) continue; + + c. Line:553,添加CPU占用的释放 + + rt_thread_delay(1); // 或者rt-schedule(); + +## 工程管理 + +1. 该工程使用Makefile管理,Makefile即文件AE210P/Makefile; + + 编译如下: + + 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 + +1. IDE:AndeSight_V300_STD + +这是一个基于Eclipse和GNU、GDB的环境,参阅对应工具/环境的标准文档即可。 + +关于创建工程和调试,请参阅《Andes工程创建和调试.docx》。 + +## 测试目标板(PCBA) + +1. AE210P EVB diff --git a/bsp/AE210P/readme/readme.txt b/bsp/AE210P/readme/readme.txt deleted file mode 100644 index b442d974cb..0000000000 --- a/bsp/AE210P/readme/readme.txt +++ /dev/null @@ -1,49 +0,0 @@ -E-Mail : Archer Zhang - -****************************** -ļУӺ޸ -****************************** -[1] bspĿ¼£AE210PĿ¼Andes AE210P EVBN1068AĿ¼ -[2] libcpuĿ¼£nds32Ŀ¼Andes N10ϵCoreϵĿ¼ -[3] ڱԭ޸finsh.hļLine7475 - #if !(defined(__GNUC__) && defined(__x86_64__)) - //typedef unsigned int size_t; // עtypedef - #include // ͷļ - #include - #else -[4] ڴδʹжϽգʹ˲ѯգ޸shell.cļ - a. Line316317 - //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)); - rt_device_open(shell->device, (RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM)); - - b. Line326ע͸ - // if (rt_sem_take(&shell->rx_sem, RT_WAITING_FOREVER) != RT_EOK) continue; - - c. Line553CPUռõͷ - - rt_thread_delay(1); // rt-schedule(); - -****************************** -̹ -****************************** -[1] ùʹMakefileMakefileļAE210P/Makefile - £ - 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 -****************************** -[1] IDEAndeSight_V300_STD - -һEclipseGNUGDBĻĶӦ/ı׼ĵɡ - -ڴ̺͵ԣġAndes̴͵.docx - -****************************** -Ŀ壨PCBA -****************************** -[1] AE210P EVB - -