System:
void setup_system_power_coordination() {
LowPowerRequestConfig system_config;
system_config.enable = true;
if (external_pmic_expects_active_low()) {
system_config.polarity = LowPowerRequestPinPolarity::ACTIVE_LOW;
} else {
system_config.polarity = LowPowerRequestPinPolarity::ACTIVE_HIGH;
}
system_config.override = LowPowerRequestOutputOverride::AUTO;
spc_configure_low_power_request(&system_config);
}