From bad2d92d98f9990ee5ccf509c0eafe5b3af9f4dc Mon Sep 17 00:00:00 2001 From: Leo C Date: Mon, 20 Oct 2014 13:19:34 +0200 Subject: Define fifos: msg_tx_fifo, msg_rx_fifo --- avr/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'avr/main.c') diff --git a/avr/main.c b/avr/main.c index ba8a672..2955630 100644 --- a/avr/main.c +++ b/avr/main.c @@ -61,6 +61,11 @@ void print_reset_reason(void) #endif +ISR(INT5_vect) +{ + Stat |= S_MSG_PENDING; +} + static void setup_avr(void) { @@ -99,6 +104,11 @@ void setup_avr(void) OCR3A = F_CPU / 1000 - 1; /* Timer3: 1000Hz interval (OC3A) */ TCCR3B = (0b01<