STM32: make PWM driver into a common file
The pwmout driver is very similar for each STM32 family.

The only family specific part is defined in pwmout_device.h file.
It mainly contains few specific information:
- The mapping of PWM/TIMERS to APB1 or APB2 so that we can get the clock
- The clock calculation uses the right APB clock, which was sometimes
not the case before and could have lead to errors in case dividers were
enabled on APB clock settings. This case is now covered.
- Inactivation of inverted support on feaw families
ls
1 parent 293b9fc commit 1cbb3e18ac1892e235c7b7ef08e6387a0f7aa50d
@Laurent MEUNIER Laurent MEUNIER authored on 16 Feb 2017
Showing 20 changed files
View
targets/TARGET_STM/TARGET_STM32F0/pwmout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F0/pwmout_device.h 0 → 100644
View
targets/TARGET_STM/TARGET_STM32F1/pwmout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F1/pwmout_device.h 0 → 100644
View
targets/TARGET_STM/TARGET_STM32F2/objects.h
View
targets/TARGET_STM/TARGET_STM32F2/pwmout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F2/pwmout_device.h 0 → 100644
View
targets/TARGET_STM/TARGET_STM32F3/pwmout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F3/pwmout_device.h 0 → 100644
View
targets/TARGET_STM/TARGET_STM32F4/pwmout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F4/pwmout_device.h 0 → 100644
View
targets/TARGET_STM/TARGET_STM32F7/pwmout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32F7/pwmout_device.h 0 → 100644
View
targets/TARGET_STM/TARGET_STM32L0/pwmout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32L0/pwmout_device.h 0 → 100644
View
targets/TARGET_STM/TARGET_STM32L1/pwmout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32L1/pwmout_device.h 0 → 100644
View
targets/TARGET_STM/TARGET_STM32L4/pwmout_api.c 100644 → 0
View
targets/TARGET_STM/TARGET_STM32L4/pwmout_device.h 0 → 100644
View
targets/TARGET_STM/pwmout_api.c 0 → 100644