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 |
||
|---|---|---|
| .. | ||
| USBDevice | ||
| USBHost | ||
| doc | ||
| dsp | ||
| fs | ||
| mbed | ||
| net | ||
| rpc | ||
| rtos | ||
| tests | ||