From 6dc56d2b35d065ba0023fb0bcad27ecd2602fb0e Mon Sep 17 00:00:00 2001 From: xoviat Date: Mon, 4 Sep 2023 16:04:29 -0500 Subject: [PATCH] stm32: include uart-named peripherals --- embassy-stm32/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/embassy-stm32/build.rs b/embassy-stm32/build.rs index 09a02952..7da3cdff 100644 --- a/embassy-stm32/build.rs +++ b/embassy-stm32/build.rs @@ -308,7 +308,8 @@ fn main() { // ======== // Generate RccPeripheral impls - let refcounted_peripherals = HashSet::from(["USART", "SPI", "I2C"]); + // TODO: maybe get this from peripheral kind? Not sure + let refcounted_peripherals = HashSet::from(["UART", "USART", "SPI", "I2C"]); let mut refcount_statics = HashSet::new(); for p in METADATA.peripherals {