Skip to content

Commit 2b39144

Browse files
authored
Merge pull request #5390 from 0xc0170/fix_fire_int_ncs
ncs36510: fire interrupt correct timer fix
2 parents c3a14c9 + 99f4961 commit 2b39144

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_us_ticker_api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ uint32_t us_ticker_read()
130130

131131
void us_ticker_fire_interrupt(void)
132132
{
133-
NVIC_SetPendingIRQ(Tim0_IRQn);
133+
us_ticker_target = 0;
134+
NVIC_SetPendingIRQ(Tim1_IRQn);
134135
}
135136

136137
/*******************************************************************************

0 commit comments

Comments
 (0)