1.Fixed the bug where PIN was missing an if judgment condition(thanks to 'Zuosir'). 2.Fix the PWM parameter detection error (Thanks to '决浮云').
ST configuration tutorial
Note:
- This
BSPonly supports theHALlibrary, and does not currently supportstandardlibrary(WCHdriver can be used, you can configure yourself) orLLlibrary requirements. - This
BSPneeds to be used together withCubeMx.
Create project
Use CubeMx to create a project for the corresponding chip. Enable the required functions(Configure pin mapping, etc).
Note: Do not enable interrupts, otherwise it will report redefinition errors (the MR framework has taken over
interrupts).
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(Note that the BSP is ported to the highest model in the same series,
When selecting and using peripherals, please refer to the chip manual to check whether the current chip has additional devices).