diff --git a/soc/arm/nordic_nrf/nrf52/soc_power.h b/soc/arm/nordic_nrf/nrf52/soc_power.h index 0668a290135..aa421e7605a 100644 --- a/soc/arm/nordic_nrf/nrf52/soc_power.h +++ b/soc/arm/nordic_nrf/nrf52/soc_power.h @@ -14,6 +14,8 @@ extern "C" { #endif +#ifdef CONFIG_SYS_POWER_MANAGEMENT + /* * Power state map: * SYS_POWER_STATE_DEEP_SLEEP: System OFF @@ -29,6 +31,8 @@ void sys_set_power_state(enum power_states state); */ void sys_power_state_post_ops(enum power_states state); +#endif /* CONFIG_SYS_POWER_MANAGEMENT */ + #ifdef __cplusplus } #endif