Skip to content

Commit

Permalink
Enable Timer1 on Raven so that interrupts coming from radio, which are
Browse files Browse the repository at this point in the history
connected to input capture, fire again.
  • Loading branch information
idelamer committed Feb 15, 2013
1 parent b43dad0 commit c22838b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/avr/radio/rf230bb/hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c22838b

Please sign in to comment.