We are mostly focused in standby, not in stop
This commit is contained in:
parent
6e7c5268a5
commit
46d5db4d5f
|
@ -35,6 +35,7 @@ STOP mode for F7 is needed for wakeup from multiple EXTI pins. For example PD0,
|
||||||
However, for F40X & F42X this may be useless. STOP in itself eats more current than standby.
|
However, for F40X & F42X this may be useless. STOP in itself eats more current than standby.
|
||||||
With F4 only having PA0 available for wakeup, this negates its need.
|
With F4 only having PA0 available for wakeup, this negates its need.
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
void stm32_stop() {
|
void stm32_stop() {
|
||||||
// Don't get bothered by interrupts
|
// Don't get bothered by interrupts
|
||||||
__disable_irq();
|
__disable_irq();
|
||||||
|
@ -63,6 +64,7 @@ void stm32_stop() {
|
||||||
// Lastly, reboot
|
// Lastly, reboot
|
||||||
NVIC_SystemReset();
|
NVIC_SystemReset();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* Standby for both F4 & F7 works perfectly, with very little current consumption.
|
* Standby for both F4 & F7 works perfectly, with very little current consumption.
|
||||||
* Downside is that there is a limited amount of pins that can wakeup F7, and only PA0 for F4XX.
|
* Downside is that there is a limited amount of pins that can wakeup F7, and only PA0 for F4XX.
|
||||||
|
|
|
@ -179,6 +179,7 @@ STOP mode for F7 is needed for wakeup from multiple EXTI pins. For example PD0,
|
||||||
However, for F40X & F42X this may be useless. STOP in itself eats more current than standby.
|
However, for F40X & F42X this may be useless. STOP in itself eats more current than standby.
|
||||||
With F4 only having PA0 available for wakeup, this negates its need.
|
With F4 only having PA0 available for wakeup, this negates its need.
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
void stm32_stop() {
|
void stm32_stop() {
|
||||||
SysTick->CTRL = 0;
|
SysTick->CTRL = 0;
|
||||||
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
|
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
|
||||||
|
@ -206,6 +207,8 @@ void stm32_stop() {
|
||||||
// Lastly, reboot
|
// Lastly, reboot
|
||||||
NVIC_SystemReset();
|
NVIC_SystemReset();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Standby for both F4 & F7 works perfectly, with very little curent consumption. Downside is that theres a limited amount of pins that can wakeup F7, and only PA0 for F4XX.
|
Standby for both F4 & F7 works perfectly, with very little curent consumption. Downside is that theres a limited amount of pins that can wakeup F7, and only PA0 for F4XX.
|
||||||
Cannot be used for CAN wakeup without hardware modificatinos.
|
Cannot be used for CAN wakeup without hardware modificatinos.
|
||||||
|
|
|
@ -190,7 +190,7 @@ void runRusEfi() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(STM32F4) || defined(STM32F7)
|
#if defined(STM32F4) || defined(STM32F7)
|
||||||
addConsoleAction("stm32_stop", stm32_stop);
|
// addConsoleAction("stm32_stop", stm32_stop);
|
||||||
addConsoleAction("stm32_standby", stm32_standby);
|
addConsoleAction("stm32_standby", stm32_standby);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue