board: configure pwm support on ST Nucleo boards
Change-Id: Iaad4644e901729b2353daddbf6e3f402370541fb Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
4827f2f386
commit
21c362e081
3 changed files with 15 additions and 0 deletions
|
@ -44,3 +44,8 @@ CONFIG_CLOCK_STM32F10X_AHB_PRESCALER=0
|
|||
# APB1 clock must not to exceed 36MHz limit
|
||||
CONFIG_CLOCK_STM32F10X_APB1_PRESCALER=2
|
||||
CONFIG_CLOCK_STM32F10X_APB2_PRESCALER=0
|
||||
|
||||
#enable pwm
|
||||
CONFIG_PWM=y
|
||||
CONFIG_PWM_STM32=y
|
||||
CONFIG_PWM_STM32_1=y
|
||||
|
|
|
@ -34,3 +34,8 @@ CONFIG_CLOCK_STM32F4X_PLLQ_DIV_FACTOR=7
|
|||
CONFIG_CLOCK_STM32F4X_AHB_PRESCALER=0
|
||||
CONFIG_CLOCK_STM32F4X_APB1_PRESCALER=2
|
||||
CONFIG_CLOCK_STM32F4X_APB2_PRESCALER=0
|
||||
|
||||
#enable pwm
|
||||
CONFIG_PWM=y
|
||||
CONFIG_PWM_STM32=y
|
||||
CONFIG_PWM_STM32_2=y
|
||||
|
|
|
@ -49,3 +49,8 @@ CONFIG_CLOCK_STM32L4X_APB2_PRESCALER=0
|
|||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE_ON_DEV_NAME="UART_2"
|
||||
|
||||
#enable pwm
|
||||
CONFIG_PWM=y
|
||||
CONFIG_PWM_STM32=y
|
||||
CONFIG_PWM_STM32_2=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue