Add irq_set_status

irq_set_status can be used to clear the irq status bit so that the
interrupt will stop occuring.
This commit is contained in:
Byron Lathi
2022-03-14 13:34:33 -05:00
parent a5474b5ae5
commit f5dbe46060
3 changed files with 7 additions and 1 deletions

View File

@@ -15,5 +15,6 @@ void handle_irq() {
if (status & BUTTON) {
puts("Button Interrupt!\n");
irq_set_status(status & ~BUTTON);
}
}