From 3877190196a57e25726834daded94064c01378fe Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Fri, 1 May 2015 16:09:50 +0100 Subject: [PATCH] Change function to static --- cpu/cc26xx/lpm.c | 14 ++++---------- cpu/cc26xx/lpm.h | 9 --------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/cpu/cc26xx/lpm.c b/cpu/cc26xx/lpm.c index 0322f940c..4d1cdd3e0 100644 --- a/cpu/cc26xx/lpm.c +++ b/cpu/cc26xx/lpm.c @@ -143,17 +143,11 @@ shutdown_now(void) } /*---------------------------------------------------------------------------*/ /* - * We'll get called on three occasions: - * - While running - * - While sleeping - * - While deep sleeping - * - * For the former two, we don't need to do anything. For the latter, we - * notify all modules that we're back on and rely on them to restore clocks + * Notify all modules that we're back on and rely on them to restore clocks * and power domains as required. */ -void -lpm_wake_up() +static void +wake_up(void) { lpm_registered_module_t *module; @@ -362,7 +356,7 @@ lpm_drop() * the chip properly, and then we will enable the global interrupt without * unpending events so the handlers can fire */ - lpm_wake_up(); + wake_up(); ti_lib_int_master_enable(); } diff --git a/cpu/cc26xx/lpm.h b/cpu/cc26xx/lpm.h index 85c20e77b..6b603377e 100644 --- a/cpu/cc26xx/lpm.h +++ b/cpu/cc26xx/lpm.h @@ -137,15 +137,6 @@ void lpm_sleep(void); */ void lpm_shutdown(uint32_t wakeup_pin); -/** - * \brief Wake up from sleep mode - * - * This function must be called at the start of any interrupt context which - * may bring us out of sleep. Current interrupts do this already, but make sure - * to do the same when adding new ISRs - */ -void lpm_wake_up(void); - /** * \brief Register a module for LPM notifications. * \param module A pointer to the data structure with the module definition