timer: nrf_rtc: Use CMSIS NVIC APIs directly
Convert driver to use the CMSIS NVIC APIs rather than the internal ones so we can remove them in the future. Change-Id: I31c2f37bc0aa35668a441f4ef2821b768dd7b817 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
6782c3ea23
commit
8c75d79a15
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <clock_control.h>
|
||||
#include <system_timer.h>
|
||||
#include <drivers/clock_control/nrf5_clock_control.h>
|
||||
#include <arch/arm/cortex_m/cmsis.h>
|
||||
|
||||
#define RTC_TICKS ((uint32_t)(((((uint64_t)1000000UL / \
|
||||
CONFIG_SYS_CLOCK_TICKS_PER_SEC) * \
|
||||
|
@ -62,7 +63,7 @@ static uint32_t rtc_compare_set(uint32_t rtc_ticks)
|
|||
isr_req = req;
|
||||
}
|
||||
|
||||
_NvicIrqPend(NRF5_IRQ_RTC1_IRQn);
|
||||
NVIC_SetPendingIRQ(NRF5_IRQ_RTC1_IRQn);
|
||||
}
|
||||
#endif /* CONFIG_TICKLESS_IDLE */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue