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 {