@@ -39,14 +39,41 @@ pub enum Error {
39
39
40
40
pub trait Pins < USART > { }
41
41
42
+ #[ cfg( any( feature = "stm32f030" , feature = "stm32f042" ) ) ]
42
43
impl Pins < USART1 > for ( PA9 < Alternate < AF1 > > , PA10 < Alternate < AF1 > > ) { }
44
+ #[ cfg( any( feature = "stm32f030" , feature = "stm32f042" ) ) ]
43
45
impl Pins < USART1 > for ( PB6 < Alternate < AF0 > > , PB7 < Alternate < AF0 > > ) { }
46
+ #[ cfg( any( feature = "stm32f030" , feature = "stm32f042" ) ) ]
44
47
impl Pins < USART1 > for ( PA9 < Alternate < AF1 > > , PB7 < Alternate < AF0 > > ) { }
48
+ #[ cfg( any( feature = "stm32f030" , feature = "stm32f042" ) ) ]
45
49
impl Pins < USART1 > for ( PB6 < Alternate < AF0 > > , PA10 < Alternate < AF1 > > ) { }
46
50
51
+ #[ cfg( feature = "stm32f030x6" ) ]
52
+ impl Pins < USART1 > for ( PA2 < Alternate < AF1 > > , PA3 < Alternate < AF1 > > ) { }
53
+
54
+ #[ cfg( any(
55
+ feature = "stm32f042" ,
56
+ feature = "stm32f030x8" ,
57
+ feature = "stm32f030xc" ,
58
+ ) ) ]
47
59
impl Pins < USART2 > for ( PA2 < Alternate < AF1 > > , PA3 < Alternate < AF1 > > ) { }
60
+ #[ cfg( any(
61
+ feature = "stm32f042" ,
62
+ feature = "stm32f030x8" ,
63
+ feature = "stm32f030xc" ,
64
+ ) ) ]
48
65
impl Pins < USART2 > for ( PA2 < Alternate < AF1 > > , PA15 < Alternate < AF1 > > ) { }
66
+ #[ cfg( any(
67
+ feature = "stm32f042" ,
68
+ feature = "stm32f030x8" ,
69
+ feature = "stm32f030xc" ,
70
+ ) ) ]
49
71
impl Pins < USART2 > for ( PA14 < Alternate < AF1 > > , PA15 < Alternate < AF1 > > ) { }
72
+ #[ cfg( any(
73
+ feature = "stm32f042" ,
74
+ feature = "stm32f030x8" ,
75
+ feature = "stm32f030xc" ,
76
+ ) ) ]
50
77
impl Pins < USART2 > for ( PA14 < Alternate < AF1 > > , PA3 < Alternate < AF1 > > ) { }
51
78
52
79
/// Serial abstraction
0 commit comments