diff options
author | Kumar Gala <kumar.gala@linaro.org> | 2017-01-13 10:36:45 -0600 |
---|---|---|
committer | Kumar Gala <kumar.gala@linaro.org> | 2017-01-23 15:15:55 -0600 |
commit | 8c75d79a154a3d63d0313c3fc0633ea7565bc7c5 (patch) | |
tree | 8927b317fa4d70a3290cca764df3ce8a6038090c /drivers | |
parent | 6782c3ea236b737389dd6df1d361dfdfd6d910a2 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/timer/nrf_rtc_timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/timer/nrf_rtc_timer.c b/drivers/timer/nrf_rtc_timer.c index a26c925c3..03a7f46f7 100644 --- a/drivers/timer/nrf_rtc_timer.c +++ b/drivers/timer/nrf_rtc_timer.c @@ -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 */ |