aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC5xx/FlexPWM_v1
diff options
context:
space:
mode:
authoracirillo87 <acirillo87@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-30 09:19:03 +0000
committeracirillo87 <acirillo87@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-30 09:19:03 +0000
commit2d67b2382e90accdc2e0c111206c0ec237afaa11 (patch)
tree2e489bde9764a68c428263a2284cc7d78b474b86 /os/hal/platforms/SPC5xx/FlexPWM_v1
parent320f18b7afb953a1447ea3e1b2246d5d1a842294 (diff)
downloadChibiOS-2d67b2382e90accdc2e0c111206c0ec237afaa11.tar.gz
ChibiOS-2d67b2382e90accdc2e0c111206c0ec237afaa11.tar.bz2
ChibiOS-2d67b2382e90accdc2e0c111206c0ec237afaa11.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5520 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/SPC5xx/FlexPWM_v1')
-rw-r--r--os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c b/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c
index 3c379af9e..c44a801af 100644
--- a/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c
+++ b/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c
@@ -1078,8 +1078,7 @@ void pwm_lld_start(PWMDriver *pwmp) {
* If this is the first FlexPWM0 submodule
* activated then the FlexPWM0 is enabled.
*/
-#if SPC5_PWM_USE_SMOD0 || SPC5_PWM_USE_SMOD1 || \
- SPC5_PWM_USE_SMOD2 || SPC5_PWM_USE_SMOD3
+#if SPC5_PWM_USE_FLEXPWM0
/* Set Peripheral Clock.*/
if (flexpwm_active_submodules0 == 1) {
halSPCSetPeripheralClockMode(SPC5_FLEXPWM0_PCTL,
@@ -1087,8 +1086,7 @@ void pwm_lld_start(PWMDriver *pwmp) {
}
#endif
-#if SPC5_PWM_USE_SMOD4 || SPC5_PWM_USE_SMOD5 || \
- SPC5_PWM_USE_SMOD6 || SPC5_PWM_USE_SMOD7
+#if SPC5_PWM_USE_FLEXPWM1
/* Set Peripheral Clock.*/
if (flexpwm_active_submodules1 == 1) {
halSPCSetPeripheralClockMode(SPC5_FLEXPWM1_PCTL,
@@ -1448,8 +1446,7 @@ void pwm_lld_stop(PWMDriver *pwmp) {
}
#endif
-#if SPC5_PWM_USE_SMOD0 || SPC5_PWM_USE_SMOD1 || \
- SPC5_PWM_USE_SMOD2 || SPC5_PWM_USE_SMOD3
+#if SPC5_PWM_USE_FLEXPWM0
/* Disable peripheral clock if there is not an activated module.*/
if (flexpwm_active_submodules0 == 0) {
halSPCSetPeripheralClockMode(SPC5_FLEXPWM0_PCTL,
@@ -1457,8 +1454,7 @@ void pwm_lld_stop(PWMDriver *pwmp) {
}
#endif
-#if SPC5_PWM_USE_SMOD4 || SPC5_PWM_USE_SMOD5 || \
- SPC5_PWM_USE_SMOD6 || SPC5_PWM_USE_SMOD7
+#if SPC5_PWM_USE_FLEXPWM1
/* Disable peripheral clock if there is not an activated module.*/
if (flexpwm_active_submodules1 == 0) {
halSPCSetPeripheralClockMode(SPC5_FLEXPWM1_PCTL,