Currently an interrupt is triggered any time there is any activity on the UART_RXD line, but later it will only trigger once there is data ready to be read.
15 lines
211 B
C
15 lines
211 B
C
#ifndef _INTERRUPT_H
|
|
#define _INTERRUPT_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define BUTTON (1 << 0)
|
|
#define UART (1 << 1)
|
|
|
|
void irq_int();
|
|
void nmi_int();
|
|
|
|
uint8_t irq_get_status();
|
|
void irq_set_status(uint8_t);
|
|
|
|
#endif |