mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
97e2d4a8c5
commit
99f4961325
|
@ -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);
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
|
Loading…
Reference in New Issue