From c22838b9d3deea7d8f8001a41a06af6b2ecc8a7a Mon Sep 17 00:00:00 2001 From: Ivan Delamer Date: Fri, 15 Feb 2013 16:08:37 -0700 Subject: [PATCH] Enable Timer1 on Raven so that interrupts coming from radio, which are connected to input capture, fire again. --- cpu/avr/radio/rf230bb/hal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/avr/radio/rf230bb/hal.h b/cpu/avr/radio/rf230bb/hal.h index 4b4753471..443a44190 100644 --- a/cpu/avr/radio/rf230bb/hal.h +++ b/cpu/avr/radio/rf230bb/hal.h @@ -293,7 +293,7 @@ #else #define RADIO_VECT TIMER1_CAPT_vect // Raven and Jackdaw -#define HAL_ENABLE_RADIO_INTERRUPT( ) ( TIMSK1 |= ( 1 << ICIE1 ) ) +#define HAL_ENABLE_RADIO_INTERRUPT( ) { TCCR1B = ( 1 << ICES1 ) | ( 1 << CS10 ); TIFR1 |= (1 << ICF1); TIMSK1 |= ( 1 << ICIE1 ) ; } #define HAL_DISABLE_RADIO_INTERRUPT( ) ( TIMSK1 &= ~( 1 << ICIE1 ) ) #endif