@@ -396,6 +396,103 @@ pub mod tim1 {
396396 }
397397}
398398
399+ pub mod tim3 {
400+ use super :: * ;
401+
402+ pin ! {
403+ <Ch1 > default : PushPull for [
404+ PA6 <1 >,
405+
406+ #[ cfg( feature = "gpio-c0xx_453" ) ]
407+ PB4 <1 >,
408+
409+ PB6 <12 >,
410+
411+ PB7 <11 >,
412+
413+ #[ cfg( feature = "gpio-c0xx_453" ) ]
414+ PB8 <3 >,
415+
416+ #[ cfg( feature = "gpio-c0xx_453" ) ]
417+ PC6 <1 >,
418+ ] ,
419+
420+ <Ch2 > default : PushPull for [
421+ PA7 <1 >,
422+
423+ #[ cfg( feature = "gpio-c0xx_453" ) ]
424+ PB3 <3 >,
425+
426+ #[ cfg( feature = "gpio-c0xx_453" ) ]
427+ PB5 <1 >,
428+
429+ PB6 <13 >,
430+
431+ #[ cfg( feature = "gpio-c0xx_453" ) ]
432+ PB9 <3 >,
433+
434+ #[ cfg( feature = "gpio-c0xx_453" ) ]
435+ PC7 <1 >,
436+
437+ PC14 <11 >,
438+ ] ,
439+
440+ <Ch3 > default : PushPull for [
441+ PA8 <11 >,
442+
443+ #[ cfg( feature = "gpio-c0xx_453" ) ]
444+ PB0 <1 >,
445+
446+ #[ cfg( feature = "gpio-c0xx_453" ) ]
447+ PB5 <3 >,
448+
449+ PB6 <3 >,
450+
451+ PC15 <3 >,
452+ ] ,
453+
454+ <Ch4 > default : PushPull for [
455+ PA8 <12 >,
456+
457+ #[ cfg( feature = "gpio-c0xx_453" ) ]
458+ PB1 <1 >,
459+
460+ PB7 <3 >,
461+ ] ,
462+ }
463+
464+ pin ! {
465+ <Etr , PushPull > for [
466+ PA2 <3 >,
467+
468+ PA9 <3 >,
469+
470+ PA13 <3 >,
471+
472+ #[ cfg( feature = "gpio-c0xx_453" ) ]
473+ PD2 <1 >,
474+ ] ,
475+
476+ }
477+
478+ use crate :: pac:: TIM3 as TIM ;
479+ impl TimCPin < 0 > for TIM {
480+ type Ch < Otype > = Ch1 < Otype > ;
481+ }
482+ impl TimCPin < 1 > for TIM {
483+ type Ch < Otype > = Ch2 < Otype > ;
484+ }
485+ impl TimCPin < 2 > for TIM {
486+ type Ch < Otype > = Ch3 < Otype > ;
487+ }
488+ impl TimCPin < 3 > for TIM {
489+ type Ch < Otype > = Ch4 < Otype > ;
490+ }
491+ impl TimEtr for TIM {
492+ type Etr = Etr ;
493+ }
494+ }
495+
399496pub mod tim14 {
400497 use super :: * ;
401498
@@ -518,103 +615,6 @@ pub mod tim17 {
518615 }
519616}
520617
521- pub mod tim3 {
522- use super :: * ;
523-
524- pin ! {
525- <Ch1 > default : PushPull for [
526- PA6 <1 >,
527-
528- #[ cfg( feature = "gpio-c0xx_453" ) ]
529- PB4 <1 >,
530-
531- PB6 <12 >,
532-
533- PB7 <11 >,
534-
535- #[ cfg( feature = "gpio-c0xx_453" ) ]
536- PB8 <3 >,
537-
538- #[ cfg( feature = "gpio-c0xx_453" ) ]
539- PC6 <1 >,
540- ] ,
541-
542- <Ch2 > default : PushPull for [
543- PA7 <1 >,
544-
545- #[ cfg( feature = "gpio-c0xx_453" ) ]
546- PB3 <3 >,
547-
548- #[ cfg( feature = "gpio-c0xx_453" ) ]
549- PB5 <1 >,
550-
551- PB6 <13 >,
552-
553- #[ cfg( feature = "gpio-c0xx_453" ) ]
554- PB9 <3 >,
555-
556- #[ cfg( feature = "gpio-c0xx_453" ) ]
557- PC7 <1 >,
558-
559- PC14 <11 >,
560- ] ,
561-
562- <Ch3 > default : PushPull for [
563- PA8 <11 >,
564-
565- #[ cfg( feature = "gpio-c0xx_453" ) ]
566- PB0 <1 >,
567-
568- #[ cfg( feature = "gpio-c0xx_453" ) ]
569- PB5 <3 >,
570-
571- PB6 <3 >,
572-
573- PC15 <3 >,
574- ] ,
575-
576- <Ch4 > default : PushPull for [
577- PA8 <12 >,
578-
579- #[ cfg( feature = "gpio-c0xx_453" ) ]
580- PB1 <1 >,
581-
582- PB7 <3 >,
583- ] ,
584- }
585-
586- pin ! {
587- <Etr , PushPull > for [
588- PA2 <3 >,
589-
590- PA9 <3 >,
591-
592- PA13 <3 >,
593-
594- #[ cfg( feature = "gpio-c0xx_453" ) ]
595- PD2 <1 >,
596- ] ,
597-
598- }
599-
600- use crate :: pac:: TIM3 as TIM ;
601- impl TimCPin < 0 > for TIM {
602- type Ch < Otype > = Ch1 < Otype > ;
603- }
604- impl TimCPin < 1 > for TIM {
605- type Ch < Otype > = Ch2 < Otype > ;
606- }
607- impl TimCPin < 2 > for TIM {
608- type Ch < Otype > = Ch3 < Otype > ;
609- }
610- impl TimCPin < 3 > for TIM {
611- type Ch < Otype > = Ch4 < Otype > ;
612- }
613- impl TimEtr for TIM {
614- type Etr = Etr ;
615- }
616- }
617-
618618pub mod usart1 {
619619 use super :: * ;
620620
0 commit comments