mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
stm32: implement halt and reset
This commit is contained in:
parent
556051955d
commit
8ccd4f3660
1 changed files with 7 additions and 0 deletions
|
|
@ -23,6 +23,13 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void reboot() override {
|
void reboot() override {
|
||||||
|
NVIC_SystemReset();
|
||||||
|
}
|
||||||
|
|
||||||
|
void powerOff() override {
|
||||||
|
HAL_PWREx_DisableInternalWakeUpLine();
|
||||||
|
__disable_irq();
|
||||||
|
HAL_PWREx_EnterSHUTDOWNMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(P_LORA_TX_LED)
|
#if defined(P_LORA_TX_LED)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue