Fixed missing trait implementation for PwmOutput.

This commit is contained in:
Vincenzo Marturano 2024-10-24 15:39:22 +02:00
parent 1fed8ac5db
commit 2596de52bb

View File

@ -369,6 +369,10 @@ impl PwmOutput {
} }
} }
impl ErrorType for PwmOutput {
type Error = PwmError;
}
impl SetDutyCycle for PwmOutput { impl SetDutyCycle for PwmOutput {
fn max_duty_cycle(&self) -> u16 { fn max_duty_cycle(&self) -> u16 {
pac::PWM.ch(self.slice).top().read().top() pac::PWM.ch(self.slice).top().read().top()