timer interrupts implemented correctly. TimeOut and Ticker classes should work.

pull/159/head
tkuyucu 2013-12-19 15:53:11 +01:00
parent f0994c710b
commit 4756fb3a51
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ void TIMER1_IRQHandler(void)
US_TICKER_TIMER->CC[1] =0;//US_TICKER_TIMER->CC[1]+ 1;
}
if ((US_TICKER_TIMER->EVENTS_COMPARE[0] != 0) &&
((US_TICKER_TIMER->INTENSET & TIMER_INTENSET_COMPARE0_Msk) != 0))
{
us_ticker_irq_handler();
}
}
void us_ticker_init(void)