bl_mcu_sdk/examples/pwm/pwm_step_motor
2021-07-16 16:01:55 +08:00
..
cdk [refactor][board] rename bl70x with bl702 2021-07-16 15:56:37 +08:00
CMakeLists.txt [refactor][examples] add case success message 2021-07-01 19:31:37 +08:00
main.c [refactor] delete unused flag noun in device_register 2021-07-16 16:01:55 +08:00
readme.md [fix][examples/pwm] modify clock source in readme 2021-07-06 16:24:27 +08:00

board/bl706_iot/pinmux_config.h 中, 以下宏设置成 GPIO_FUN_PWM

  • CONFIG_GPIO10_FUNC
  • CONFIG_GPIO11_FUNC
  • CONFIG_GPIO12_FUNC
  • CONFIG_GPIO3_FUNC

board/bl706_iot/clock_config.h

  • BSP_PWM_CLOCK_SOURCE 选择 ROOT_CLOCK_SOURCE_32K_CLK,
  • BSP_PWM_CLOCK_DIV 设置成 32

$ make APP=pwm_step_motor BOARD=bl706_iot