soc: arm: nordic_nrf: align nrf_power calls to new scheme
Now the API to manage GPREGRET register is unified for all devices having one or more GPREGRET entries. Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
This commit is contained in:
parent
70db8cd12a
commit
a4cbe9e9c6
|
@ -29,7 +29,7 @@ LOG_MODULE_REGISTER(soc);
|
|||
*/
|
||||
void sys_arch_reboot(int type)
|
||||
{
|
||||
nrf_power_gpregret_set(NRF_POWER, (uint8_t)type);
|
||||
nrf_power_gpregret_set(NRF_POWER, 0, (uint8_t)type);
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -31,7 +31,7 @@ LOG_MODULE_REGISTER(soc);
|
|||
*/
|
||||
void sys_arch_reboot(int type)
|
||||
{
|
||||
nrf_power_gpregret_set(NRF_POWER, (uint8_t)type);
|
||||
nrf_power_gpregret_set(NRF_POWER, 0, (uint8_t)type);
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue