File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed
components/libc/compilers/armlibc Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ NUCLEO-F072RB 开发板常用 **板载资源** 如下:
2929- 常用接口:USB 转串口、Arduino Uno 和 ST morpho 两类扩展接口
3030- 调试接口:板载 ST-LINK/V2-1 调试器。
3131
32- 更多相关信息资料见 ST 官网详情页: [ NUCLEO_F072RB_STM32Nucleo-64开发板 ] https://www.stmcu .com.cn/Designresource/design_resource_detail?file_name=NUCLEO_F072RB_STM32Nucleo-64%E5%BC%80%E5%8F%91%E6%9D%BF&lang=EN&ver=
32+ 开发板更多详细信息请参考意法半导体 [ NUCLEO-F072RB ] ( https://www.st .com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-nucleo-boards/nucleo-f072rb.html )
3333
3434## 外设支持
3535
Original file line number Diff line number Diff line change 1- # BSP README 模板
1+ # NUCLEO-F091RC 开发板 BSP 说明
22
33## 简介
44
5- 本文档为 RT-Thread 开发团队为 STM32F091RC-NuCLEO 开发板提供的 BSP (板级支持包) 说明。
5+ 本文档为 RT-Thread 开发团队为 STM32F091RC-NUCLEO 开发板提供的 BSP (板级支持包) 说明。
66
77主要内容如下:
88
@@ -22,15 +22,15 @@ STM32F091RC-NuCLEO 开发板是 ST 官方推出的一款基于 ARM Cortex-M0 内
2222
2323该开发板常用 ** 板载资源** 如下:
2424
25- - MCU:STM32F091 ,主频 48MHz,256KB FLASH ,32KB RAM
25+ - MCU:STM32F091RC ,主频 48MHz,256KB FLASH ,32KB RAM
2626- 外部 RAM:无
2727- 外部 FLASH:无
2828- 常用外设
2929 - 按键:1个,user(兼具唤醒功能,PC13)
3030- 常用接口:USB 转串口、arduino 接口等
3131- 调试接口,标准 SWD
3232
33- 开发板更多详细信息请参考 ST 的 [ NUCLEO 开发板介绍 ] ( https://www.st.com/en/evaluation-tools/stm32-mcu-nucleo.html?querycriteria=productId=LN1847 ) 。
33+ 开发板更多详细信息请参考意法半导体 [ NUCLEO-F091RC ] ( https://www.st.com/content/st_com/ en/products/ evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/ stm32-mcu-mpu-eval-tools/stm32- nucleo-boards/nucleo-f091rc .html ) 。
3434
3535## 外设支持
3636
Original file line number Diff line number Diff line change 2020
2121![ board] ( figures/board.png )
2222
23- 该开发板常用 ** 板载资源 ** 如下:
23+ 该开发板常用 ** 板载资源** 如下:
2424
25- - MCU:STM32F411ZG ,主频 100MHz,1024KB FLASH ,256KB RAM。
25+ - MCU:STM32F412ZG ,主频 100MHz,1024KB FLASH ,256KB RAM。
2626- 常用外设
2727 - LED:3 个,USB communication (LD1), user LED (LD2), power LED (LD3) 。
2828 - 按键,2 个,USER and RESET 。
7171
7272#### 运行结果
7373
74- 下载程序成功之后,系统会自动运行,观察开发板上 LED 的运行效果,红色 LD3 和 LD1 常亮、绿色 LD2 会周期性闪烁。
74+ 下载程序成功之后,系统会自动运行,观察开发板上 LED 的运行效果,红色 LD3 和 LD1 常亮、蓝色 LD2 会周期性闪烁。
7575
7676USB 虚拟 COM 端口默认连接串口 3,在终端工具里打开相应的串口(115200-8-1-N),复位设备后,可以看到 RT-Thread 的输出信息:
7777
Original file line number Diff line number Diff line change 99 * 2013-11-24 aozima fixed _sys_read()/_sys_write() issues.
1010 * 2014-08-03 bernard If using msh, use system() implementation
1111 * in msh.
12+ * 2020-08-05 Meco Man fixed _sys_flen() compiling-warning when
13+ * RT_USING_DFS is not defined
1214 */
1315
1416#include <string.h>
@@ -265,16 +267,16 @@ RT_WEAK void _sys_exit(int return_code)
265267 */
266268long _sys_flen (FILEHANDLE fh )
267269{
270+ #ifdef RT_USING_DFS
268271 struct stat stat ;
269-
272+
270273 if (fh < STDERR )
271274 return -1 ;
272275
273- #ifndef RT_USING_DFS
274- return -1 ;
275- #else
276276 fstat (fh , & stat );
277277 return stat .st_size ;
278+ #else
279+ return -1 ;
278280#endif
279281}
280282
You can’t perform that action at this time.
0 commit comments