1-
21#[ cfg( feature = "hrtim_v2" ) ]
32use crate :: stm32:: HRTIM_TIMF ;
43use crate :: {
@@ -155,13 +154,13 @@ pub trait ToHrOut<TIM>: sealed::Sealed<TIM> {
155154 #[ cfg( feature = "stm32f3" ) ]
156155 type Afr ;
157156
158- fn connect_to_hrtim ( self ,
157+ fn connect_to_hrtim (
158+ self ,
159159 #[ cfg( feature = "stm32f3" ) ]
160160 moder : & mut <Self :: GpioX as hal:: gpio:: marker:: GpioStatic >:: MODER ,
161161 #[ cfg( feature = "stm32f3" ) ]
162162 otyper : & mut <Self :: GpioX as hal:: gpio:: marker:: GpioStatic >:: OTYPER ,
163- #[ cfg( feature = "stm32f3" ) ]
164- afr : & mut Self :: Afr
163+ #[ cfg( feature = "stm32f3" ) ] afr : & mut Self :: Afr ,
165164 ) ;
166165}
167166
@@ -176,22 +175,23 @@ where
176175impl < TIM , PA , PB > ToHrOut < TIM > for ( PA , PB )
177176where
178177 PA : ToHrOut < TIM > ,
179- PB : ToHrOut < TIM , GpioX = PA :: GpioX , Afr = PA :: Afr > ,
178+ PB : ToHrOut < TIM , GpioX = PA :: GpioX , Afr = PA :: Afr > ,
180179{
181180 type Out < PSCL > = ( PA :: Out < PSCL > , PB :: Out < PSCL > ) ;
182181 type GpioX = PA :: GpioX ;
183182 type Afr = PA :: Afr ;
184183
185- fn connect_to_hrtim ( self ,
186-
184+ fn connect_to_hrtim (
185+ self ,
186+
187187 moder : & mut <Self :: GpioX as hal:: gpio:: marker:: GpioStatic >:: MODER ,
188-
188+
189189 otyper : & mut <Self :: GpioX as hal:: gpio:: marker:: GpioStatic >:: OTYPER ,
190-
191- afr : & mut Self :: Afr
190+
191+ afr : & mut Self :: Afr ,
192192 ) {
193- self . 0 . connect_to_hrtim ( moder, otyper, afr) ;
194- self . 1 . connect_to_hrtim ( moder, otyper, afr) ;
193+ self . 0 . connect_to_hrtim ( moder, otyper, afr) ;
194+ self . 1 . connect_to_hrtim ( moder, otyper, afr) ;
195195 }
196196}
197197
@@ -222,7 +222,7 @@ macro_rules! pins_helper {
222222 #[ cfg( feature = "stm32f3" ) ]
223223 type GpioX = hal:: gpio:: $GpioX;
224224 #[ cfg( feature = "stm32f3" ) ]
225- type Afr = <Self as hal:: gpio:: marker:: IntoAf <{ $CHY_AF} >>:: AFR ;
225+ type Afr = <Self as hal:: gpio:: marker:: IntoAf <{ $CHY_AF } >>:: AFR ;
226226
227227 // Pin<Gpio, Index, Alternate<PushPull, AF>>
228228 fn connect_to_hrtim(
@@ -231,17 +231,17 @@ macro_rules! pins_helper {
231231 moder: & mut <Self :: GpioX as hal:: gpio:: marker:: GpioStatic >:: MODER ,
232232 #[ cfg( feature = "stm32f3" ) ]
233233 otyper: & mut <Self :: GpioX as hal:: gpio:: marker:: GpioStatic >:: OTYPER ,
234- #[ cfg( feature = "stm32f3" ) ]
235- afr: & mut Self :: Afr
234+ #[ cfg( feature = "stm32f3" ) ] afr: & mut Self :: Afr ,
236235 ) {
237236 #[ allow( non_snake_case, unused_variables) ]
238237 let $GpioX = ( ) ;
239238
240239 #[ cfg( feature = "stm32f3" ) ]
241- let _: $CHY<hal:: gpio:: Alternate <hal:: gpio:: PushPull , $CHY_AF>> = self . into_af_push_pull( moder, otyper, afr) ;
240+ let _: $CHY<hal:: gpio:: Alternate <hal:: gpio:: PushPull , $CHY_AF>> =
241+ self . into_af_push_pull( moder, otyper, afr) ;
242242
243243 #[ cfg( feature = "stm32g4" ) ]
244- let _: $CHY<hal:: gpio:: Alternate <{ $CHY_AF} >> = self . into_alternate( ) ;
244+ let _: $CHY<hal:: gpio:: Alternate <{ $CHY_AF } >> = self . into_alternate( ) ;
245245 }
246246 }
247247 } ;
@@ -276,14 +276,15 @@ impl<T> ToHrOut<T> for () {
276276 #[ cfg( feature = "stm32f3" ) ]
277277 type Afr = ( ) ;
278278
279- fn connect_to_hrtim ( self ,
279+ fn connect_to_hrtim (
280+ self ,
280281 #[ cfg( feature = "stm32f3" ) ]
281282 _moder : & mut <Self :: GpioX as hal:: gpio:: marker:: GpioStatic >:: MODER ,
282283 #[ cfg( feature = "stm32f3" ) ]
283284 _otyper : & mut <Self :: GpioX as hal:: gpio:: marker:: GpioStatic >:: OTYPER ,
284- #[ cfg( feature = "stm32f3" ) ]
285- _afr : & mut Self :: Afr
286- ) { }
285+ #[ cfg( feature = "stm32f3" ) ] _afr : & mut Self :: Afr ,
286+ ) {
287+ }
287288}
288289
289290pub struct CH1 < PSCL > ( PhantomData < PSCL > ) ;
0 commit comments