aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincenzo Marturano <[email protected]>2024-10-24 15:39:22 +0200
committerVincenzo Marturano <[email protected]>2024-10-24 15:39:22 +0200
commit2596de52bba32b0d1e755ab18909c10a9e663aad (patch)
treeae78f7734931233767bd31fbe0d99aeccb882f1d
parent1fed8ac5dbb239e53cdc51b10c27a0c58ea92aeb (diff)
Fixed missing trait implementation for PwmOutput.
-rw-r--r--embassy-rp/src/pwm.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/embassy-rp/src/pwm.rs b/embassy-rp/src/pwm.rs
index 4f11eb8f7..66f0dc7f2 100644
--- a/embassy-rp/src/pwm.rs
+++ b/embassy-rp/src/pwm.rs
@@ -369,6 +369,10 @@ impl PwmOutput {
369 } 369 }
370} 370}
371 371
372impl ErrorType for PwmOutput {
373 type Error = PwmError;
374}
375
372impl SetDutyCycle for PwmOutput { 376impl SetDutyCycle for PwmOutput {
373 fn max_duty_cycle(&self) -> u16 { 377 fn max_duty_cycle(&self) -> u16 {
374 pac::PWM.ch(self.slice).top().read().top() 378 pac::PWM.ch(self.slice).top().read().top()