ncs36510: fire interrupt correct timer fix

Use Timer1, it is used for us ticker isr handling. Plus reset target counter,
that should be 0, go to upper ticker isr handler immediately.
pull/5390/head
Martin Kojtal 2017-10-27 17:46:24 +01:00
parent 97e2d4a8c5
commit 99f4961325
1 changed files with 2 additions and 1 deletions

View File

@ -130,7 +130,8 @@ uint32_t us_ticker_read()
void us_ticker_fire_interrupt(void)
{
NVIC_SetPendingIRQ(Tim0_IRQn);
us_ticker_target = 0;
NVIC_SetPendingIRQ(Tim1_IRQn);
}
/*******************************************************************************