From f875c3efc2548d4757f25e2a9c6b961c5c3c1aeb Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 4 May 2017 13:38:49 +0200 Subject: [PATCH] cpu/cortexm: s/cpu_sleep_until_.../cortexm_sle.../ --- cpu/cortexm_common/include/cpu.h | 2 +- cpu/nrf5x_common/periph/hwrng.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/cortexm_common/include/cpu.h b/cpu/cortexm_common/include/cpu.h index ae8c812a3a..b8e7e29e79 100644 --- a/cpu/cortexm_common/include/cpu.h +++ b/cpu/cortexm_common/include/cpu.h @@ -76,7 +76,7 @@ static inline void cpu_print_last_instruction(void) * This function is meant to be used for short periods of time, where it is not * feasible to switch to the idle thread and back. */ -static inline void cpu_sleep_until_event(void) +static inline void cortexm_sleep_until_event(void) { __WFE(); } diff --git a/cpu/nrf5x_common/periph/hwrng.c b/cpu/nrf5x_common/periph/hwrng.c index ab3eb3ee2e..b9fb565608 100644 --- a/cpu/nrf5x_common/periph/hwrng.c +++ b/cpu/nrf5x_common/periph/hwrng.c @@ -44,7 +44,7 @@ void hwrng_read(void *buf, unsigned int num) while (count < num) { /* sleep until number is generated */ while (NRF_RNG->EVENTS_VALRDY == 0) { - cpu_sleep_until_event(); + cortexm_sleep_until_event(); } b[count++] = (uint8_t)NRF_RNG->VALUE;