STM32F0xx Standard Peripherals Firmware Library: PWR_STANDBY

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Functions

static void EnterSTANDBYMode (void)
 Enters STANDBY mode, RTC Alarm within 3 second or an external RESET will wake-up the system from STANDBY.
static uint32_t GetLSIFrequency (void)
 Configures TIM14 to measure the LSI oscillator frequency.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void NMI_Handler (void)
 This function handles NMI exception.
void PendSV_Handler (void)
 This function handles PendSVC exception.
static void RTC_Config (void)
 Configures the RTC clock source.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Configuration (void)
 Configures the SysTick to generate an interrupt each 250 ms.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void TIM14_IRQHandler (void)
 This function handles TIM14 global interrupt request.

Variables

__IO uint32_t CaptureNumber
__IO uint32_t CaptureNumber
uint32_t IC1ReadValue1 = 0
uint32_t IC1ReadValue2 = 0
__IO uint32_t PeriodValue
__IO uint32_t PeriodValue

Function Documentation

static void EnterSTANDBYMode ( void  ) [static]

Enters STANDBY mode, RTC Alarm within 3 second or an external RESET will wake-up the system from STANDBY.

Parameters:
None
Return values:
None

Definition at line 184 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/main.c.

Referenced by main().

static uint32_t GetLSIFrequency ( void  ) [static]

Configures TIM14 to measure the LSI oscillator frequency.

Parameters:
None
Return values:
LSIFrequency

Definition at line 224 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/main.c.

References CaptureNumber, NVIC_InitStructure, and PeriodValue.

Referenced by RTC_Config().

void HardFault_Handler ( void  )

This function handles Hard Fault exception.

Parameters:
None
Return values:
None

Definition at line 69 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/stm32f0xx_it.c.

int main ( void  )

Main program.

Parameters:
None
Return values:
None

< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f0xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file

Definition at line 58 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/main.c.

References EnterSTANDBYMode(), RTC_Config(), and SysTick_Configuration().

void NMI_Handler ( void  )

This function handles NMI exception.

Parameters:
None
Return values:
None

Definition at line 60 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/stm32f0xx_it.c.

void PendSV_Handler ( void  )

This function handles PendSVC exception.

Parameters:
None
Return values:
None

Definition at line 91 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/stm32f0xx_it.c.

static void RTC_Config ( void  ) [static]

Configures the RTC clock source.

Parameters:
None
Return values:
None

Definition at line 98 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/main.c.

References GetLSIFrequency(), and RTC_InitStructure.

Referenced by main().

void SVC_Handler ( void  )

This function handles SVCall exception.

Parameters:
None
Return values:
None

Definition at line 82 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/stm32f0xx_it.c.

void SysTick_Configuration ( void  )

Configures the SysTick to generate an interrupt each 250 ms.

Parameters:
None
Return values:
None

Definition at line 293 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/main.c.

References SystemCoreClock.

Referenced by main().

void SysTick_Handler ( void  )

This function handles SysTick Handler.

Parameters:
None
Return values:
None

Definition at line 100 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/stm32f0xx_it.c.

void TIM14_IRQHandler ( void  )

This function handles TIM14 global interrupt request.

Parameters:
None
Return values:
None

Definition at line 118 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/stm32f0xx_it.c.


Variable Documentation

STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32