Change function to static

This commit is contained in:
George Oikonomou 2015-05-01 16:09:50 +01:00
parent 3f310e462f
commit 3877190196
2 changed files with 4 additions and 19 deletions

View file

@ -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();
}

View file

@ -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