Enable Timer1 on Raven so that interrupts coming from radio, which are

connected to input capture, fire again.
This commit is contained in:
Ivan Delamer 2013-02-15 16:08:37 -07:00
parent b43dad00b0
commit c22838b9d3

View File

@ -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