Merge pull request #116 from xoviat/fix-error

restrict usb to stm32f4
This commit is contained in:
xoviat 2021-03-27 21:45:44 -05:00 committed by GitHub
commit f6bcd2690d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {}