@@ -28,20 +28,20 @@ macro_rules! hrtim_out {
2828 common. odisr. write( |w| { w. $tXYodis( ) . set_bit( ) } ) ;
2929 }
3030
31- fn enable_set_event<ES : EventSource <PSCL , $TIMX>>( & mut self , _set_event: & ES ) {
31+ fn enable_set_event<ES : EventSource <$TIMX, PSCL >>( & mut self , _set_event: & ES ) {
3232 let tim = unsafe { & * $TIMX:: ptr( ) } ;
3333 unsafe { tim. $setXYr. modify( |r, w| w. bits( r. bits( ) | ES :: BITS ) ) ; }
3434 }
35- fn disable_set_event<ES : EventSource <PSCL , $TIMX>>( & mut self , _set_event: & ES ) {
35+ fn disable_set_event<ES : EventSource <$TIMX, PSCL >>( & mut self , _set_event: & ES ) {
3636 let tim = unsafe { & * $TIMX:: ptr( ) } ;
3737 unsafe { tim. $setXYr. modify( |r, w| w. bits( r. bits( ) & !ES :: BITS ) ) ; }
3838 }
3939
40- fn enable_rst_event<ES : EventSource <PSCL , $TIMX>>( & mut self , _reset_event: & ES ) {
40+ fn enable_rst_event<ES : EventSource <$TIMX, PSCL >>( & mut self , _reset_event: & ES ) {
4141 let tim = unsafe { & * $TIMX:: ptr( ) } ;
4242 unsafe { tim. $rstXYr. modify( |r, w| w. bits( r. bits( ) | ES :: BITS ) ) ; }
4343 }
44- fn disable_rst_event<ES : EventSource <PSCL , $TIMX>>( & mut self , _reset_event: & ES ) {
44+ fn disable_rst_event<ES : EventSource <$TIMX, PSCL >>( & mut self , _reset_event: & ES ) {
4545 let tim = unsafe { & * $TIMX:: ptr( ) } ;
4646 unsafe { tim. $rstXYr. modify( |r, w| w. bits( r. bits( ) & !ES :: BITS ) ) ; }
4747 }
@@ -97,25 +97,25 @@ pub trait HrOutput<PSCL, TIM> {
9797 ///
9898 /// NOTE: Enabling the same event for both SET and RESET
9999 /// will make that event TOGGLE the output
100- fn enable_set_event < ES : EventSource < PSCL , TIM > > ( & mut self , set_event : & ES ) ;
100+ fn enable_set_event < ES : EventSource < TIM , PSCL > > ( & mut self , set_event : & ES ) ;
101101
102102 /// Stop listening to the specified event
103- fn disable_set_event < ES : EventSource < PSCL , TIM > > ( & mut self , set_event : & ES ) ;
103+ fn disable_set_event < ES : EventSource < TIM , PSCL > > ( & mut self , set_event : & ES ) ;
104104
105105 /// Set this output to *not* active every time the specified event occurs
106106 ///
107107 /// NOTE: Enabling the same event for both SET and RESET
108108 /// will make that event TOGGLE the output
109- fn enable_rst_event < ES : EventSource < PSCL , TIM > > ( & mut self , reset_event : & ES ) ;
109+ fn enable_rst_event < ES : EventSource < TIM , PSCL > > ( & mut self , reset_event : & ES ) ;
110110
111111 /// Stop listening to the specified event
112- fn disable_rst_event < ES : EventSource < PSCL , TIM > > ( & mut self , reset_event : & ES ) ;
112+ fn disable_rst_event < ES : EventSource < TIM , PSCL > > ( & mut self , reset_event : & ES ) ;
113113
114114 /// Get current state of the output
115115 fn get_state ( & self ) -> State ;
116116}
117117
118- #[ derive( Debug , PartialEq ) ]
118+ #[ derive( Debug , PartialEq , Copy , Clone ) ]
119119#[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
120120pub enum State {
121121 Idle ,
0 commit comments