Library Functions.
More...
Library Functions.
All functions for sleep mode configuration
| void TM_LOWPOWER_DisableWakeUpPin |
( |
void |
| ) |
|
Disables Wakeup pin.
- Note
- If you go to standby mode after PA0 is disabled, then you can't wake him up with rising edge
- Parameters
-
- Return values
-
| void TM_LOWPOWER_EnableWakeUpPin |
( |
void |
| ) |
|
Enables Wakeup pin, fixed pin, PA0.
- Note
- This pin is fixed and can't be changed.
-
Rising edge on wakeup pin will wake up device from standby mode
- Parameters
-
- Return values
-
| void TM_LOWPOWER_SleepUntilEvent |
( |
void |
| ) |
|
Put device into sleep mode.
- Note
- MCU will be in sleep mode until next event occured
- Parameters
-
- Return values
-
| void TM_LOWPOWER_SleepUntilInterrupt |
( |
uint8_t |
delay_timer | ) |
|
Put device into sleep mode.
- Note
- MCU will be in sleep mode until next interrupt occured. This means, that delay timer (Systick or any user selectable delay timer) can wakeup STM32F4 too. If you want prevent this, you have to disable delay timer as well it. This can be done with this function.
- Parameters
-
| delay_timer | Set to > 0 and delay timer will be disabled or set to 0 and it will stay as is |
- Return values
-
| void TM_LOWPOWER_Standby |
( |
void |
| ) |
|
To go Standby mode.
- Parameters
-
- Return values
-
| uint8_t TM_LOWPOWER_StandbyReset |
( |
void |
| ) |
|
Checks if system was reset because of wakeup from standby mode.
- Parameters
-
- Return values
-
| 0 | System was not reset because of wake up from standby mode 1: System was reset because of wake up from standby mode |
| void TM_LOWPOWER_StopUntilEvent |
( |
void |
| ) |
|
Go to STOP mode with "Wait For Event" instruction.
- Parameters
-
- Return values
-
| void TM_LOWPOWER_StopUntilInterrupt |
( |
void |
| ) |
|
Go to STOP mode with "Wait For Interrupt" instruction.
- Parameters
-
- Return values
-