irq_set_status can be used to clear the irq status bit so that the interrupt will stop occuring.
14 lines
186 B
C
14 lines
186 B
C
#ifndef _INTERRUPT_H
|
|
#define _INTERRUPT_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define BUTTON (1 << 0)
|
|
|
|
void irq_int();
|
|
void nmi_int();
|
|
|
|
uint8_t irq_get_status();
|
|
void irq_set_status(uint8_t);
|
|
|
|
#endif |