rt-thread-official/bsp/phytium/board
Macro f4b2035c03
[bsp/phytium] driver and config update (#8344)
更新驱动代码,完成对新版rt-thread内核的支持工作。更新默认config文件,保证各驱动被顺利添加后,程序能正常运行
2023-12-08 17:57:55 +08:00
..
cus_demo_board [bsp/phytium]Code Update and Refactoring (#8247) 2023-11-21 17:42:23 +08:00
README.md [bsp/phytium] driver and config update (#8344) 2023-12-08 17:57:55 +08:00
SConscript [bsp/phytium]Code Update and Refactoring (#8247) 2023-11-21 17:42:23 +08:00
board.c [bsp/phytium] driver and config update (#8344) 2023-12-08 17:57:55 +08:00
board.h [bsp/phytium]Code Update and Refactoring (#8247) 2023-11-21 17:42:23 +08:00
board.kconfig [bsp/phytium] driver and config update (#8344) 2023-12-08 17:57:55 +08:00
phytium_cpu.c [bsp/phytium]Code Update and Refactoring (#8247) 2023-11-21 17:42:23 +08:00
phytium_cpu.h [bsp/phytium]Code Update and Refactoring (#8247) 2023-11-21 17:42:23 +08:00
phytium_cpu_id.S [bsp/phytium]Code Update and Refactoring (#8247) 2023-11-21 17:42:23 +08:00
secondary_cpu.c [bsp/phytium]Code Update and Refactoring (#8247) 2023-11-21 17:42:23 +08:00

README.md

添加开发板至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
  1. 创建文件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文件示例基本框架已完成只需填充函数

  1. 在bsp/phytium/board 目录下SConscript文件中添加如下内容将fio_mux.c和fio_mux.h文件加入编译

SConscript

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

board_kconfig

  1. 打开menuconfig进行如下配置
  • 进入Standalone Setting目录下 standalone_setting

  • 进入Soc configuration选择E2000D soc_configuration

soc_select

  • 进入board_configuration选择cus_board_demo

board_configuration

board_select

  1. 在bsp/libraries/drivers中驱动实例开启受Kconfig控制如有更多需求请自行修改.c文件和Kconfig文件

  2. 编译测试