mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 09:47:07 +08:00
52 lines
1.3 KiB
Markdown
52 lines
1.3 KiB
Markdown
# 添加开发板至PHYTIUM BSP
|
||
|
||
注:BSP已支持E2000Q_DEMO,E2000D_DEMO,PHYTIUMPI开发板,若需填加系列其他开发板,请按以下步骤进行
|
||
|
||
## 以cus_demo_board(E2000D系列)开发板为例进行说明
|
||
|
||
1. 在bsp/phytium/board下创建cus_demo_board文件夹
|
||
```
|
||
$ cd bsp/phytium/board
|
||
$ cd mkdir cus_demo_board
|
||
```
|
||
|
||
2. 创建文件fio_mux.c和fio_mux.h,添加引脚复用函数
|
||
```
|
||
$ touch fio_mux.c
|
||
$ touch fio_mux.c
|
||
```
|
||
可参考bsp/phytium/standalone/board/e2000d_demo 目录下的fio_mux.c和fio_mux.h文件,示例基本框架已完成,只需填充函数
|
||
|
||
3. 在bsp/phytium/board 目录下SConscript文件中添加如下内容,将fio_mux.c和fio_mux.h文件加入编译
|
||
|
||

|
||
|
||
4. 修改 bsp/phytium/board 目录下board.kconfig文件,如下图所示
|
||
|
||

|
||
|
||
5. 打开menuconfig进行如下配置
|
||
|
||
- 进入Standalone Setting目录下
|
||

|
||
|
||
- 进入Soc configuration选择E2000D
|
||

|
||
|
||

|
||
|
||
- 进入board_configuration选择cus_board_demo
|
||
|
||

|
||
|
||

|
||
|
||
6. 编译测试
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|