TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
TM_LOWPOWER_Functions

Library Functions. More...

Functions

void TM_LOWPOWER_SleepUntilInterrupt (uint8_t delay_timer)
 Put device into sleep mode. More...
 
void TM_LOWPOWER_SleepUntilEvent (void)
 Put device into sleep mode. More...
 
void TM_LOWPOWER_StopUntilInterrupt (void)
 Go to STOP mode with "Wait For Interrupt" instruction. More...
 
void TM_LOWPOWER_StopUntilEvent (void)
 Go to STOP mode with "Wait For Event" instruction. More...
 
void TM_LOWPOWER_Standby (void)
 To go Standby mode. More...
 
uint8_t TM_LOWPOWER_StandbyReset (void)
 Checks if system was reset because of wakeup from standby mode. More...
 
void TM_LOWPOWER_EnableWakeUpPin (void)
 Enables Wakeup pin, fixed pin, PA0. More...
 
void TM_LOWPOWER_DisableWakeUpPin (void)
 Disables Wakeup pin. More...
 

Detailed Description

Library Functions.

All functions for sleep mode configuration

Function Documentation

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
None
Return values
None
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
None
Return values
None
void TM_LOWPOWER_SleepUntilEvent ( void  )

Put device into sleep mode.

Note
MCU will be in sleep mode until next event occured
Parameters
None
Return values
None
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_timerSet to > 0 and delay timer will be disabled or set to 0 and it will stay as is
Return values
None
void TM_LOWPOWER_Standby ( void  )

To go Standby mode.

Parameters
None
Return values
None
uint8_t TM_LOWPOWER_StandbyReset ( void  )

Checks if system was reset because of wakeup from standby mode.

Parameters
None
Return values
0System 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
None
Return values
None
void TM_LOWPOWER_StopUntilInterrupt ( void  )

Go to STOP mode with "Wait For Interrupt" instruction.

Parameters
None
Return values
None