@@ -4,7 +4,7 @@ use super::{
44 comparator:: OptionalCmpCfg ,
55 generator:: OptionalGenCfg ,
66 operator:: { self , NoOperator , OptionalOperator , OPERATOR } ,
7- timer:: Timer ,
7+ timer:: TimerDriver ,
88 Operator , OperatorConfig ,
99} ;
1010
@@ -16,14 +16,14 @@ where
1616 O1 : OptionalOperator < 1 , G > ,
1717 O2 : OptionalOperator < 2 , G > ,
1818{
19- timer : Timer < N , G > ,
19+ timer : TimerDriver < N , G > ,
2020 operator0 : O0 ,
2121 operator1 : O1 ,
2222 operator2 : O2 ,
2323}
2424
2525impl < const N : u8 , G : Group > TimerConnection < N , G , NoOperator , NoOperator , NoOperator > {
26- pub ( crate ) fn new ( timer : Timer < N , G > ) -> Self {
26+ pub ( crate ) fn new ( timer : TimerDriver < N , G > ) -> Self {
2727 Self {
2828 timer,
2929 operator0 : NoOperator ,
4646 O2 : OptionalOperator < 2 , G > ,
4747 > TimerConnection < N , G , O0 , O1 , O2 >
4848{
49- pub fn split ( & mut self ) -> ( & mut Timer < N , G > , & mut O0 , & mut O1 , & mut O2 ) {
49+ pub fn split ( & mut self ) -> ( & mut TimerDriver < N , G > , & mut O0 , & mut O1 , & mut O2 ) {
5050 (
5151 & mut self . timer ,
5252 & mut self . operator0 ,
6363 O2 : OptionalOperator < 2 , G > ,
6464{
6565 #[ allow( clippy:: type_complexity) ]
66- pub fn attatch_operator0 < CMPX , CMPY , GENA , GENB > (
66+ pub fn attach_operator0 < CMPX , CMPY , GENA , GENB > (
6767 self ,
6868 operator_handle : OPERATOR < 0 , G > ,
6969 operator_cfg : OperatorConfig < CMPX , CMPY , GENA , GENB > ,
9191 O2 : OptionalOperator < 2 , G > ,
9292{
9393 #[ allow( clippy:: type_complexity) ]
94- pub fn attatch_operator1 < CMPX , CMPY , GENA , GENB > (
94+ pub fn attach_operator1 < CMPX , CMPY , GENA , GENB > (
9595 self ,
9696 operator_handle : OPERATOR < 1 , G > ,
9797 operator_cfg : OperatorConfig < CMPX , CMPY , GENA , GENB > ,
@@ -119,7 +119,7 @@ where
119119 O1 : OptionalOperator < 1 , G > ,
120120{
121121 #[ allow( clippy:: type_complexity) ]
122- pub fn attatch_operator2 < CMPX , CMPY , GENA , GENB > (
122+ pub fn attach_operator2 < CMPX , CMPY , GENA , GENB > (
123123 self ,
124124 operator_handle : OPERATOR < 2 , G > ,
125125 operator_cfg : OperatorConfig < CMPX , CMPY , GENA , GENB > ,
@@ -154,8 +154,3 @@ impl<const N: u8, G, O0, O1, O2> Drop for TimerConnection<N, G, O0, O1, O2>
154154 }
155155}
156156*/
157-
158- // TODO: Should this be moved somewhere else?
159- pub trait OptionalOutputPin { }
160-
161- impl < P : crate :: gpio:: OutputPin > OptionalOutputPin for P { }
0 commit comments