diff --git a/cpu/cc2538/lpm.c b/cpu/cc2538/lpm.c index 80b536998..b620d2df6 100644 --- a/cpu/cc2538/lpm.c +++ b/cpu/cc2538/lpm.c @@ -48,6 +48,8 @@ #include #include #include + +#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 */ /** @} */ diff --git a/cpu/cc2538/lpm.h b/cpu/cc2538/lpm.h index 0c497b5be..60dc46693 100644 --- a/cpu/cc2538/lpm.h +++ b/cpu/cc2538/lpm.h @@ -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_ */