Skip to content

Commit fc8420f

Browse files
committed
update readme
1 parent 366f9b5 commit fc8420f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# 软件使用指南
22

3-
## 1、如何对接(以stm32f103-blue-pill为例)
3+
pinout-generator是为了方便用户将BSP对接到RTduino上而设计的一个自动化源文件生成工具。下面以[stm32f103-blue-pill](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout) BSP为例,展示如何使用本软件,并将该BSP对接到RTduino上。
44

5-
### 1.1、添加BSP路径
5+
## 1 如何对接
66

7-
### 1.2、添加RT-Thread引脚跟Arduino引脚的对应关系
7+
### 1.1 添加BSP路径
8+
9+
### 1.2 添加RT-Thread引脚跟Arduino引脚的对应关系
810

911
可以右键唤起菜单,或者直接点击快捷添加按钮,其他的像插入、删除等等,都是对这个表进行操作。
1012

@@ -22,7 +24,7 @@
2224

2325
![image-20220920202116524](figures/image-20220920202116524.png)
2426

25-
### 1.3填写一些重要选项
27+
### 1.3 填写一些重要选项
2628

2729
这时候我们再来看看这几个选项:
2830

@@ -51,7 +53,7 @@
5153

5254
![image-20220920202756490](figures/image-20220920202756490.png)
5355

54-
### 1.4导出文件
56+
### 1.4 导出文件
5557

5658
这时候我们就可以导出了,会生成以下几个重要文件
5759

@@ -63,25 +65,25 @@
6365
- Sconscript:Scons构建脚本。
6466
- Kconfig:Kconfig配置文件。
6567

66-
### 1.5用户需要修改的地方
68+
### 1.5 用户需要修改的地方
6769

68-
1、pins_arduino.c
70+
#### 1.5.1 pins_arduino.c
6971

7072
![image-20220920203147439](figures/image-20220920203147439.png)
7173

7274
由于软件对注册的设备具体引脚无法区分,所以这块需要人为实现,比如D14是I2C的SDA引脚,需要将I2C-xx修改为I2C-SDA。如下:
7375

7476
![image-20220920203332254](figures/image-20220920203332254.png)
7577

76-
2、pins_arduino.h
78+
#### 1.5.2 pins_arduino.h
7779

7880
![image-20220920203439163](figures/image-20220920203439163.png)
7981

8082
类似,对于这个文件也需要做相应的修改。
8183

8284
![image-20220920203512658](figures/image-20220920203512658.png)
8385

84-
3、Kconfig
86+
#### 1.5.3 Kconfig
8587

8688
在arduino_pinout文件夹中,会生成一个Kconfig文件夹,这个文件夹我们是不能留的,但是需要把里面的内容拷贝到board文件夹下的Kconfig。
8789

0 commit comments

Comments
 (0)