File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ const APP: () = {
218
218
pwm. stop ( ) ;
219
219
* status = AppStatus :: Idle ;
220
220
}
221
- ctx. resources . pwm . replace ( pwm. wrap ( Some ( BUF0 ) , Some ( BUF1 ) ) ) ;
221
+ * ctx. resources . pwm = pwm. load ( Some ( BUF0 ) , Some ( BUF1 ) , false ) . ok ( ) ;
222
222
}
223
223
_ => {
224
224
rprintln ! ( "DEMO 3: Manually step through sequence" ) ;
Original file line number Diff line number Diff line change @@ -586,26 +586,6 @@ where
586
586
} )
587
587
}
588
588
589
- /// Wraps `Pwm<T>` and the given sequence buffers in a `PwmSeq`, without loading the buffers.
590
- #[ allow( unused_mut) ]
591
- pub fn wrap < B0 , B1 > (
592
- mut self ,
593
- seq0_buffer : Option < B0 > ,
594
- seq1_buffer : Option < B1 > ,
595
- ) -> PwmSeq < T , B0 , B1 >
596
- where
597
- B0 : ReadBuffer < Word = u16 > + ' static ,
598
- B1 : ReadBuffer < Word = u16 > + ' static ,
599
- {
600
- PwmSeq {
601
- inner : Some ( Inner {
602
- seq0_buffer,
603
- seq1_buffer,
604
- pwm : self ,
605
- } ) ,
606
- }
607
- }
608
-
609
589
/// Enables interrupt triggering on the specified event.
610
590
#[ inline( always) ]
611
591
pub fn enable_interrupt ( & self , event : PwmEvent ) -> & Self {
You can’t perform that action at this time.
0 commit comments