mbed-os/libraries/mbed/targets/hal
Martin Simpson bbfd190206 Update pwmout_api.c
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
2015-07-27 12:16:45 +01:00
..
TARGET_ARM_SSG/TARGET_MPS2 fixes to review comments 2015-07-02 14:30:55 +01:00
TARGET_Atmel * removed Atmel Copyright License from all files. 2015-07-15 12:22:44 +05:30
TARGET_Freescale Merge pull request #1226 from star297/master 2015-07-10 14:13:01 +01:00
TARGET_Maxim Merge branch 'master' of https://github.com/sg-/mbed into sg--master 2015-05-27 13:09:05 +01:00
TARGET_NORDIC/TARGET_MCU_NRF51822 Add bootloader versioning based on the softdevice being used for all nRF51822 based platforms. 2015-07-21 13:47:40 +03:00
TARGET_NXP [LPC4337] fix PinNames.h for OM13070 2015-07-17 16:36:34 +09:00
TARGET_RENESAS/TARGET_RZ_A1H Fix bug of CONST declaration in PWM driver. 2015-07-13 18:04:13 +09:00
TARGET_STM Update pwmout_api.c 2015-07-27 12:16:45 +01:00
TARGET_Silicon_Labs/TARGET_EFM32 Fix tabulation mistake 2015-07-17 10:34:49 +02:00
TARGET_WIZNET/TARGET_W7500x Merge pull request #1229 from Wiznet/mbed_dev2 2015-07-27 09:38:55 +01:00