We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6db427 commit b016ffdCopy full SHA for b016ffd
Cargo.toml
@@ -53,6 +53,7 @@ stm32f030x8 = ["stm32f030"]
53
stm32f030xc = ["stm32f030"]
54
stm32f031 = ["stm32f0/stm32f0x1", "device-selected"]
55
stm32f042 = ["stm32f0/stm32f0x2", "device-selected"]
56
+stm32f051 = ["stm32f0/stm32f0x1", "device-selected"]
57
stm32f070 = ["stm32f0/stm32f0x0", "device-selected"]
58
stm32f070x6 = ["stm32f070"]
59
stm32f070xb = ["stm32f070"]
src/adc.rs
@@ -206,6 +206,7 @@ adc_pins!(
206
207
#[cfg(any(
208
feature = "stm32f030",
209
+ feature = "stm32f051",
210
feature = "stm32f070",
211
feature = "stm32f072",
212
feature = "stm32f091"
@@ -353,6 +354,7 @@ impl VRef {
353
354
355
feature = "stm32f031",
356
feature = "stm32f042",
357
358
359
feature = "stm32f091",
360
))]
@@ -363,6 +365,7 @@ pub struct VBat;
363
365
364
366
367
368
369
370
371
@@ -373,6 +376,7 @@ adc_pins!(
373
376
374
377
375
378
379
380
381
382
src/gpio.rs
@@ -570,6 +570,7 @@ gpio!(GPIOC, gpioc, iopcen, PC, [
570
571
572
573
574
575
576
@@ -593,7 +594,7 @@ gpio!(GPIOC, gpioc, iopcen, PC, [
593
594
PC15: (pc15, 15, Input<Floating>),
595
]);
596
-#[cfg(any(feature = "stm32f030", feature = "stm32f070"))]
597
+#[cfg(any(feature = "stm32f030", feature = "stm32f051", feature = "stm32f070"))]
598
gpio!(GPIOD, gpiod, iopden, PD, [
599
PD2: (pd2, 2, Input<Floating>),
600
@@ -648,7 +649,7 @@ gpio!(GPIOF, gpiof, iopfen, PF, [
648
649
PF11: (pf11, 11, Input<Floating>),
650
651
-#[cfg(feature = "stm32f030")]
652
+#[cfg(any(feature = "stm32f030", feature = "stm32f051"))]
653
gpio!(GPIOF, gpiof, iopfen, PF, [
654
PF0: (pf0, 0, Input<Floating>),
655
PF1: (pf1, 1, Input<Floating>),
src/i2c.rs
@@ -69,6 +69,7 @@ i2c_pins! {
69
}
70
71
72
73
74
75
@@ -94,7 +95,7 @@ i2c_pins! {
94
95
96
97
-#[cfg(any(feature = "stm32f030x8"))]
98
+#[cfg(any(feature = "stm32f030x8", feature = "stm32f051"))]
99
i2c_pins! {
100
I2C2 => {
101
scl => [gpiob::PB10<Alternate<AF1>>],
@@ -156,8 +157,7 @@ i2c! {
156
157
158
159
feature = "stm32f030xc",
- // XXX: This can't be right
160
- feature = "stm32f030xc",
161
feature = "stm32f070xb",
162
163
src/lib.rs
@@ -6,7 +6,7 @@ pub use stm32f0;
6
#[cfg(any(feature = "stm32f030", feature = "stm32f070"))]
7
pub use stm32f0::stm32f0x0 as stm32;
8
9
-#[cfg(any(feature = "stm32f031", feature = "stm32f091"))]
+#[cfg(any(feature = "stm32f031", feature = "stm32f051", feature = "stm32f091"))]
10
pub use stm32f0::stm32f0x1 as stm32;
11
12
#[cfg(any(feature = "stm32f042", feature = "stm32f072"))]
src/serial.rs
@@ -85,7 +85,7 @@ macro_rules! usart_pins {
85
86
87
88
-#[cfg(any(feature = "stm32f030", feature = "stm32f042"))]
+#[cfg(any(feature = "stm32f030", feature = "stm32f042", feature = "stm32f051"))]
89
usart_pins! {
90
USART1 => {
91
tx => [gpioa::PA9<Alternate<AF1>>, gpiob::PB6<Alternate<AF0>>],
@@ -111,10 +111,12 @@ usart_pins! {
111
rx => [gpioa::PA10<Alternate<AF1>>, gpiob::PB7<Alternate<AF0>>],
112
113
114
+
115
116
feature = "stm32f030x8",
117
118
119
120
121
122
@@ -283,6 +285,7 @@ usart! {
283
285
284
286
287
288
289
290
291
src/spi.rs
@@ -133,6 +133,7 @@ spi_pins! {
133
134
135
136
137
138
139
@@ -204,6 +205,7 @@ spi! {
204
205
src/timers.rs
@@ -225,6 +225,7 @@ timers! {
225
226
227
228
229
230
231
@@ -247,6 +248,7 @@ timers! {
247
248
249
250
251
252
253
254
0 commit comments