Skip to content

Commit e42c862

Browse files
authored
Merge pull request #4 from RT-Thread/master
sync
2 parents 706c041 + 257e81a commit e42c862

File tree

210 files changed

+63513
-575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+63513
-575
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
## 拉取/合并请求描述:(PR description)
22

3-
请仔细阅读以下文字。请在这里填写您的PR描述,可以包括以下之一的内容:为什么提交这份PR;解决的问题是什么,你的解决方案是什么;
4-
Please read the following carefully. Please fill in your PR description here, which can include one of the following items: why to submit this PR; what is the problem solved and what is your solution;
3+
[
4+
这段方括号里的内容是您必须填写并替换掉的,否则PR不可能被合并。方括号外面的内容不需要修改,但请仔细阅读。
5+
The content in this square bracket must be filled in and replaced, otherwise PR can not be merged. The contents outside square brackets need not be changed, but please read them carefully.
56

6-
并确认已经在什么情况或板卡上进行了测试。
7+
请在这里填写您的PR描述,可以包括以下之一的内容:为什么提交这份PR;解决的问题是什么,你的解决方案是什么;
8+
Please fill in your PR description here, which can include one of the following items: why to submit this PR; what is the problem solved and what is your solution;
9+
10+
并确认并列出已经在什么情况或板卡上进行了测试。
711
And confirm in which case or board have been tested.
12+
]
813

914
以下的内容请在提交PR后,一项项进行check,没问题后逐条在页面上打钩。
1015
The following contents should be checked item by item after submitted PR, and ticked on the browser one by one after no problem.

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ env:
9090
- RTT_BSP='stm32/stm32f429-armfly-v6' RTT_TOOL_CHAIN='sourcery-arm'
9191
- RTT_BSP='stm32/stm32f429-atk-apollo' RTT_TOOL_CHAIN='sourcery-arm'
9292
- RTT_BSP='stm32/stm32f429-fire-challenger' RTT_TOOL_CHAIN='sourcery-arm'
93+
- RTT_BSP='stm32/stm32f446-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
9394
- RTT_BSP='stm32/stm32f767-atk-apollo' RTT_TOOL_CHAIN='sourcery-arm'
9495
- RTT_BSP='stm32/stm32f767-fire-challenger' RTT_TOOL_CHAIN='sourcery-arm'
9596
- RTT_BSP='stm32/stm32l475-atk-pandora' RTT_TOOL_CHAIN='sourcery-arm'

bsp/imxrt/imxrt1050-ArchMix/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ endmenu
284284
config RT_USING_RTC_HP
285285
bool "Using hp rtc"
286286
select RT_USING_RTC
287+
select RT_USING_LIBC
287288
default n
288289
#endmenu
289290

bsp/imxrt/imxrt1050-evk/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ endmenu
445445
config RT_USING_RTC_HP
446446
bool "Using hp rtc"
447447
select RT_USING_RTC
448+
select RT_USING_LIBC
448449
default n
449450
#endmenu
450451

bsp/imxrt1052-evk/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ endmenu
444444
config RT_USING_RTC_HP
445445
bool "Using hp rtc"
446446
select RT_USING_RTC
447+
select RT_USING_LIBC
447448
default n
448449
#endmenu
449450

bsp/k210/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ config $BSP_DIR
88
config $RTT_DIR
99
string
1010
option env="RTT_ROOT"
11-
default: "../.."
11+
default "../.."
1212

1313
config $PKGS_DIR
1414
string

bsp/stm32/docs/STM32系列BSP制作教程.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ BSP 的制作过程分为如下五个步骤:
204204

205205
重新生成工程需要使用 env 工具。
206206

207-
#### 3.5.1 重新生成 rt_config.h 文件
207+
#### 3.5.1 重新生成 rtconfig.h 文件
208208

209-
在 env 界面输入命令 menuconfig 对工程进行配置,并生成新的 rt_config.h 文件。如下图所示:
209+
在 env 界面输入命令 menuconfig 对工程进行配置,并生成新的 rtconfig.h 文件。如下图所示:
210210

211211
![输入menuconfig进入配置界面](./figures/menuconfig_1.png)
212212

@@ -243,8 +243,7 @@ STM32 BSP 的制作规范主要分为 3 个方面:工程配置,ENV 配置和
243243

244244
- 遵从RT-Thread 编码规范,代码注释风格统一
245245
- main 函数功能保持一致
246-
- 如果有 LED 的话,main 函数里只放一个 LED 1HZ 闪烁的程序
247-
- LED_PIN 定义在 board.h,初始化在 board.c 完成
246+
- 如果有 LED 的话,main 函数里**只放一个** LED 1HZ 闪烁的程序
248247
-`rt_hw_board_init` 中需要完成堆的初始化:调用 `rt_system_heap_init`
249248
- 默认只初始化 GPIO 驱动和 FinSH 对应的串口驱动,不使用 DMA
250249
- 当使能板载外设驱动时,应做到不需要修改代码就能编译下载使用
@@ -271,10 +270,11 @@ STM32 BSP 的制作规范主要分为 3 个方面:工程配置,ENV 配置和
271270

272271
### 2. BSP 提交规范
273272

274-
- 基础 BSP 和驱动应该分开提交
275-
- 基础 BSP 包括串口驱动和 GPIO 驱动,能运行 FinSH 控制台
276-
- 不同的驱动也要分开提交,方便 review 和合并
277-
- 只提交 BSP 必要的文件,删除无关的中间文件
273+
- 提交前请认真修改 BSP 的 README.md 文件,README.md 文件的外设支持表单只填写 BSP 支持的外设,可参考其他 BSP 填写。查看文档[《STM32系列驱动介绍》](./STM32系列驱动介绍.md)了解驱动分类。
274+
- 提交 BSP 分为 2 个阶段提交:
275+
- 第一阶段:基础 BSP 包括串口驱动和 GPIO 驱动,能运行 FinSH 控制台。完成 MDK4、MDK5 、IAR 和 GCC 编译器支持,如果芯片不支持某款编译器(比如MDK4)可以不用做。 BSP 的 README.md 文件需要填写第二阶段要完成的驱动。
276+
- 第二阶段:完成板载外设驱动支持,所有板载外设使用 menuconfig 配置后就能直接使用。若开发板没有板载外设,则此阶段可以不用完成。不同的驱动也要分开提交,方便 review 和合并。
277+
- 只提交 BSP 必要的文件,删除无关的中间文件,能够提交的文件请对照其他 BSP。
278278
- 提交 stm32 不同系列的 Library 库时,请参考 f1/f4 系列的 HAL 库,删除多余库文件
279279
- 提交前要对 BSP 进行编译测试,确保在不同编译器下编译正常
280280
- 提交前要对 BSP 进行功能测试,确保 BSP 的在提交前符合工程配置章节中的要求

bsp/stm32/docs/STM32系列BSP外设驱动使用教程.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# BSP 进阶使用指南
1+
# BSP 外设驱动使用教程
22

33
## 简介
44

bsp/stm32/docs/STM32系列外设驱动添加指南.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
> 为 BSP 添加驱动时,STM32CubeMX 工具可以快速的完成**使能外设****配置管脚**的工作。而外设初始化,中断配置,DMA配置等等则由 RT-Thread 提供的驱动文件来完成。也就是说,虽然 STM32CubeMX 生成了多个文件用来初始化外设,但 RT-Thread 只使用了 STM32CubeMX 生成的 `stm32fxx_hal_msp.c` 文件和 `stm32fxx_hal_conf.h` 文件。
3939
>
40-
> 对于不同的外设驱动,通过 STM32CubeMX 工具配置的内容也不一样。开发者可以参考本文档的附录 [CubeMX配置说明]() 章节来了解不同外设的配置方法
40+
> 对于不同的外设驱动,通过 STM32CubeMX 工具配置的内容也不一样。开发者可以参考本文档的附录 CubeMX 配置说明章节来了解不同外设的配置方法
4141
4242
### 3)修改 Kconfig 文件
4343

bsp/stm32/docs/figures/board_h.png

-24.6 KB
Loading

0 commit comments

Comments
 (0)