From 8c75d79a154a3d63d0313c3fc0633ea7565bc7c5 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 13 Jan 2017 10:36:45 -0600 Subject: [PATCH] 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 --- drivers/timer/nrf_rtc_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/timer/nrf_rtc_timer.c b/drivers/timer/nrf_rtc_timer.c index a26c925c3ee..03a7f46f73b 100644 --- a/drivers/timer/nrf_rtc_timer.c +++ b/drivers/timer/nrf_rtc_timer.c @@ -8,6 +8,7 @@ #include #include #include +#include #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 */