Async GPIO implementation

This commit is contained in:
2025-02-15 12:45:31 +01:00
parent 7f6b1a7ba5
commit 0bcf611e46
21 changed files with 1666 additions and 684 deletions

View File

@ -50,7 +50,7 @@ use embassy_time_queue_utils::Queue;
use once_cell::sync::OnceCell;
use va416xx_hal::{
clock::Clocks,
enable_interrupt,
enable_nvic_interrupt,
irq_router::enable_and_init_irq_router,
pac::{self, interrupt},
pwm::ValidTim,
@ -207,7 +207,7 @@ impl TimerDriver {
.write(|w| unsafe { w.bits(u32::MAX) });
// Switch on. Timekeeping should always be done.
unsafe {
enable_interrupt(TimekeeperTim::IRQ);
enable_nvic_interrupt(TimekeeperTim::IRQ);
}
timekeeper_tim_regs
.ctrl()
@ -224,7 +224,7 @@ impl TimerDriver {
});
// Enable general interrupts. The IRQ enable of the peripheral remains cleared.
unsafe {
enable_interrupt(AlarmTim::IRQ);
enable_nvic_interrupt(AlarmTim::IRQ);
}
}