restrict usb to stm32f4

This commit is contained in:
xoviat 2021-03-27 21:42:26 -05:00
parent 4bc77e3d0e
commit 8d014f7955

View file

@ -75,4 +75,23 @@ pub mod can;
))] ))]
pub mod rtc; pub mod rtc;
#[cfg(any(
feature = "stm32f401",
feature = "stm32f405",
feature = "stm32f407",
feature = "stm32f410",
feature = "stm32f411",
feature = "stm32f412",
feature = "stm32f413",
feature = "stm32f415",
feature = "stm32f417",
feature = "stm32f423",
feature = "stm32f427",
feature = "stm32f429",
feature = "stm32f437",
feature = "stm32f439",
feature = "stm32f446",
feature = "stm32f469",
feature = "stm32f479",
))]
unsafe impl embassy_extras::usb::USBInterrupt for interrupt::OTG_FS {} unsafe impl embassy_extras::usb::USBInterrupt for interrupt::OTG_FS {}