aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c')
-rw-r--r--os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c b/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c
index c44a801af..4315f2ffc 100644
--- a/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c
+++ b/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.c
@@ -988,7 +988,7 @@ void pwm_lld_init(void) {
#if (SPC5_PWM_USE_SMOD6)
/* Driver initialization.*/
- pwmObjectInit(&PWMD3);
+ pwmObjectInit(&PWMD7);
PWMD7.flexpwmp = &SPC5_FLEXPWM_1;
INTC.PSR[SPC5_FLEXPWM1_RF2_NUMBER].R = SPC5_PWM_SMOD6_PRIORITY;
INTC.PSR[SPC5_FLEXPWM1_COF2_NUMBER].R = SPC5_PWM_SMOD6_PRIORITY;
@@ -999,7 +999,7 @@ void pwm_lld_init(void) {
#if (SPC5_PWM_USE_SMOD7)
/* Driver initialization.*/
- pwmObjectInit(&PWMD4);
+ pwmObjectInit(&PWMD8);
PWMD8.flexpwmp = &SPC5_FLEXPWM_1;
INTC.PSR[SPC5_FLEXPWM1_RF3_NUMBER].R = SPC5_PWM_SMOD7_PRIORITY;
INTC.PSR[SPC5_FLEXPWM1_COF3_NUMBER].R = SPC5_PWM_SMOD7_PRIORITY;