Remove ad-hoc imports from generated code.

This commit is contained in:
Dario Nieuwenhuis
2021-05-21 19:29:37 +02:00
parent da16c60487
commit f96db3d9d2
2 changed files with 5 additions and 7 deletions

View File

@ -216,6 +216,9 @@ macro_rules! impl_exti_irq {
($($e:ident),+) => {
/// safety: must be called only once
pub(crate) unsafe fn init_exti() {
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
$(
crate::interrupt::$e::steal().enable();
)+