diff options
| author | xoviat <[email protected]> | 2023-09-04 16:04:29 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-09-04 16:04:29 -0500 |
| commit | 6dc56d2b35d065ba0023fb0bcad27ecd2602fb0e (patch) | |
| tree | cc642c6a80bb8439926e03af34f6cd534aedd20a | |
| parent | 394503ab69129e79b4fe78653c67337ec4e7346e (diff) | |
stm32: include uart-named peripherals
| -rw-r--r-- | embassy-stm32/build.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32/build.rs b/embassy-stm32/build.rs index 09a029525..7da3cdffb 100644 --- a/embassy-stm32/build.rs +++ b/embassy-stm32/build.rs | |||
| @@ -308,7 +308,8 @@ fn main() { | |||
| 308 | // ======== | 308 | // ======== |
| 309 | // Generate RccPeripheral impls | 309 | // Generate RccPeripheral impls |
| 310 | 310 | ||
| 311 | let refcounted_peripherals = HashSet::from(["USART", "SPI", "I2C"]); | 311 | // TODO: maybe get this from peripheral kind? Not sure |
| 312 | let refcounted_peripherals = HashSet::from(["UART", "USART", "SPI", "I2C"]); | ||
| 312 | let mut refcount_statics = HashSet::new(); | 313 | let mut refcount_statics = HashSet::new(); |
| 313 | 314 | ||
| 314 | for p in METADATA.peripherals { | 315 | for p in METADATA.peripherals { |
