Merge pull request #546 from ADVANSEE/cc2538-fix-disabled-lpm

cc2538: lpm: Fix build for LPM_CONF_ENABLE == 0
This commit is contained in:
George Oikonomou 2014-01-29 08:40:56 -08:00
commit 345532c559
2 changed files with 4 additions and 0 deletions

View file

@ -48,6 +48,8 @@
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#if LPM_CONF_ENABLE != 0
/*---------------------------------------------------------------------------*/
#if ENERGEST_CONF_ON
static unsigned long irq_energest = 0;
@ -378,4 +380,5 @@ lpm_init()
LPM_STATS_INIT();
}
/*---------------------------------------------------------------------------*/
#endif /* LPM_CONF_ENABLE != 0 */
/** @} */

View file

@ -212,6 +212,7 @@ void lpm_register_peripheral(lpm_periph_permit_pm1_func_t permit_pm1_func);
#define lpm_enter()
#define lpm_exit()
#define lpm_set_max_pm(...)
#define lpm_register_peripheral(...)
#endif
#endif /* LPM_H_ */