rt-thread/bsp/phytium/board/README.md

52 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 添加开发板至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文件加入编译
![SConscript](./../figures/SConscript.png)
4. 修改 bsp/phytium/board 目录下board.kconfig文件如下图所示
![board_kconfig](./../figures/board_kconfig.png)
5. 打开menuconfig进行如下配置
- 进入Standalone Setting目录下
![standalone_setting](./../figures/standalone_setting.png)
- 进入Soc configuration选择E2000D
![soc_configuration](./../figures/soc_configuration.png)
![soc_select](./../figures/soc_select.png)
- 进入board_configuration选择cus_board_demo
![board_configuration](./../figures/soc_configuration.png)
![board_select](./../figures/board_select.png)
6. 编译测试