mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 09:38:37 +08:00
SAMA5 PWM: Cosmetic changes to debug output
This commit is contained in:
@@ -1138,6 +1138,7 @@ static int pwm_start(FAR struct pwm_lowerhalf_s *dev,
|
|||||||
/* Enable the channel */
|
/* Enable the channel */
|
||||||
|
|
||||||
pwm_putreg(chan, SAM_PWM_ENA_OFFSET, PWM_CHID(chan->channel));
|
pwm_putreg(chan, SAM_PWM_ENA_OFFSET, PWM_CHID(chan->channel));
|
||||||
|
pwm_dumpregs(chan, "After start");
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1351,6 +1352,7 @@ FAR struct pwm_lowerhalf_s *sam_pwminitialize(int channel)
|
|||||||
/* Now were are initialized */
|
/* Now were are initialized */
|
||||||
|
|
||||||
g_pwm.initialized = true;
|
g_pwm.initialized = true;
|
||||||
|
pwm_dumpregs(chan, "After Initialization");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Configure all pins for this channel as inputs */
|
/* Configure all pins for this channel as inputs */
|
||||||
|
|||||||
Reference in New Issue
Block a user