diff --git a/cpu/cc26xx-cc13xx/lpm.h b/cpu/cc26xx-cc13xx/lpm.h index 2d6f56d00f8..66fc4e8a049 100644 --- a/cpu/cc26xx-cc13xx/lpm.h +++ b/cpu/cc26xx-cc13xx/lpm.h @@ -54,7 +54,11 @@ #define LPM_MODE_DEEP_SLEEP 2 #define LPM_MODE_SHUTDOWN 3 +#ifdef LPM_CONF_MAX_PM +#define LPM_MODE_MAX_SUPPORTED LPM_CONF_MAX_PM +#else #define LPM_MODE_MAX_SUPPORTED LPM_MODE_DEEP_SLEEP +#endif /*---------------------------------------------------------------------------*/ #define LPM_DOMAIN_NONE 0 #define LPM_DOMAIN_SERIAL PRCM_DOMAIN_SERIAL