mirror of https://github.com/ARMmbed/mbed-os.git
Line 244 changed PclkFreq*2 to PcklFreq Line 246 changed PclkFreq to PclkFreq*2 This is proposed as the current pwmout_api.c gives the wrong period/frequency when using e.g."mypwm.period_ms(1);" For PWM1 1ms gave 500Hz and PWM2,3 and 4 gave 2KHz Applied to source as above and re-compiled this gave 1KHz outputs for all PWM's selected Tried on NUCLEO STM32F401RE will effect other NUCLEO-STM32F4 as above HAL Clocks are as follows for the F401RE Board: PCLK1=42000000 PCLK2=84000000 HCLK=84000000 Kind Regards Martin |
||
|---|---|---|
| .. | ||
| TARGET_ARM_SSG/TARGET_MPS2 | ||
| TARGET_Atmel | ||
| TARGET_Freescale | ||
| TARGET_Maxim | ||
| TARGET_NORDIC/TARGET_MCU_NRF51822 | ||
| TARGET_NXP | ||
| TARGET_RENESAS/TARGET_RZ_A1H | ||
| TARGET_STM | ||
| TARGET_Silicon_Labs/TARGET_EFM32 | ||
| TARGET_WIZNET/TARGET_W7500x | ||