mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Fixed missing trait implementation for PwmOutput.
This commit is contained in:
parent
1fed8ac5db
commit
2596de52bb
@ -369,6 +369,10 @@ impl PwmOutput {
|
||||
}
|
||||
}
|
||||
|
||||
impl ErrorType for PwmOutput {
|
||||
type Error = PwmError;
|
||||
}
|
||||
|
||||
impl SetDutyCycle for PwmOutput {
|
||||
fn max_duty_cycle(&self) -> u16 {
|
||||
pac::PWM.ch(self.slice).top().read().top()
|
||||
|
Loading…
Reference in New Issue
Block a user