1.新增bsp使用说明。

This commit is contained in:
MacRsh
2024-01-13 03:13:42 +08:00
parent 4f8e8af8f8
commit 2d7c627828
4 changed files with 52 additions and 6 deletions

View File

@@ -13,4 +13,12 @@
注:禁止使能中断,否则会报重复定义错误(`MR`框架已接管中断)。
## 参考仓库目录下的`README`,添加 mr-library
## 将项目导入工程2.添加驱动)
复制`bsp/st/driver``stm32xxx/driver`文件至`driver`
## 移植驱动
参考上一步中`stm32xxx/driver`路径下`Kconfig``mr_board.h`,修改参数,完成移植与裁剪。
## 继续按仓库目录下`README`,添加 mr-library

View File

@@ -4,13 +4,24 @@
Note:
- This BSP only supports the HAL library, and does not currently support standard library or LL library requirements.
- This BSP needs to be used together with CubeMx.
- This `BSP` only supports the `HAL` library, and does not currently support `standard` library or `LL` library requirements.
- This `BSP` needs to be used together with `CubeMx`.
## Create project
Use CubeMx to create a project for the corresponding chip. Enable the required functions (only need to configure pin mapping relationships, no need to set specific parameter values).
Use `CubeMx` to create a project for the corresponding chip. Enable the required functions (only need to configure pin
mapping relationships, no need to set specific parameter values).
Note: Do not enable interrupts, otherwise it will report redefinition errors (the MR framework has taken over interrupts).
Note: Do not enable interrupts, otherwise it will report redefinition errors (the `MR` framework has taken over
interrupts).
## Refer to the README under the repository directory to add mr-library
## Import project into project (2. Add driver)
Copy `bsp/st/driver` and `stm32xxx/driver` files to `driver`.
## Port driver
Refer to the `stm32xxx/driver` path `Kconfig` and `mr_board.h` in the previous step to modify parameters and complete
the migration and tailoring.
## Continue to add mr-library by pressing `README` in the repository directory

13
bsp/wch/README.md Normal file
View File

@@ -0,0 +1,13 @@
# WCH配置教程
[English](README_EN.md)
## 将项目导入工程2.添加驱动)
复制`bsp/wch/driver``ch32xxx/driver`文件至`driver`
## 移植驱动
参考上一步中`ch32xxx/driver`路径下`Kconfig``mr_board.h`,修改参数,完成移植与裁剪。
## 继续按仓库目录下`README`,添加 mr-library

14
bsp/wch/README_EN.md Normal file
View File

@@ -0,0 +1,14 @@
# WCH configuration tutorial
[中文](README.md)
## Import project into project (2. Add driver)
Copy `bsp/wch/driver` and `ch32xxx/driver` files to `driver`.
## Port driver
Refer to the `ch32xxx/driver` path `Kconfig` and `mr_board.h` in the previous step to modify parameters and complete
the migration and tailoring.
## Continue to add mr-library by pressing `README` in the repository directory