Skip to content

Commit 9c789b9

Browse files
committed
src/lib.rs: enable most modules for stm32l4+ devices as well
1 parent 70f465b commit 9c789b9

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/lib.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,14 @@ pub mod adc;
126126
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
127127
#[cfg(not(any(feature = "stm32l412",)))]
128128
pub mod can;
129-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
130129
pub mod crc;
131130
pub mod datetime;
132-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
133131
pub mod delay;
134-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
135132
pub mod dma;
136-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
137133
pub mod dmamux;
138-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
139134
pub mod flash;
140-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
141135
pub mod gpio;
142-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
143136
pub mod i2c;
144-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
145137
pub mod lptimer;
146138
#[cfg(all(
147139
feature = "otg_fs",
@@ -154,11 +146,8 @@ pub mod lptimer;
154146
)
155147
))]
156148
pub mod otg_fs;
157-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
158149
pub mod prelude;
159-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
160150
pub mod pwm;
161-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
162151
pub mod pwr;
163152
#[cfg(not(any(
164153
feature = "stm32l433",
@@ -167,23 +156,14 @@ pub mod pwr;
167156
feature = "stm32l4s9",
168157
)))]
169158
pub mod qspi;
170-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
171159
pub mod rcc;
172-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
173160
pub mod rng;
174-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
175161
pub mod rtc;
176-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
177162
pub mod serial;
178-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
179163
pub mod signature;
180-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
181164
pub mod spi;
182-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
183165
pub mod time;
184-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
185166
pub mod timer;
186-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
187167
pub mod tsc;
188168
#[cfg(all(
189169
feature = "stm32-usbd",
@@ -199,7 +179,6 @@ pub mod tsc;
199179
)
200180
))]
201181
pub mod usb;
202-
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
203182
pub mod watchdog;
204183

205184
mod sealed {

0 commit comments

Comments
 (0)