Skip to content

Commit

Permalink
fixup! atmega timer: Interrupt Pin
Browse files Browse the repository at this point in the history
  • Loading branch information
Josar committed Jun 18, 2018
1 parent dc507e8 commit ac676db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cpu/atmega_common/periph/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,17 @@ static inline void _isr(tim_t tim, int chan)
{
#if defined(DEBUG_TIMER_PORT)
DEBUG_TIMER_PORT |= (1 << DEBUG_TIMER_PIN);
DEBUG_TIMER_PORT &= ~(1 << DEBUG_TIMER_PIN);
#endif

__enter_isr();

*ctx[tim].mask &= ~(1 << (chan + OCIE1A));
ctx[tim].cb(ctx[tim].arg, chan);

#if defined(DEBUG_TIMER_PORT)
DEBUG_TIMER_PORT &= ~(1 << DEBUG_TIMER_PIN);
#endif

if (sched_context_switch_request) {
thread_yield();
thread_yield_isr();
Expand Down

0 comments on commit ac676db

Please sign in to comment.