Browse Source
Merge pull request #447 from fdlamotte/stm32_halt_reset
stm32: implement halt and reset
pull/448/head
ripplebiz
12 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
0 deletions
-
src/helpers/stm32/STM32Board.h
|
|
@ -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) |
|
|
|