STM32F0xx Standard Peripherals Firmware Library: PWR_Stop

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Functions

void Delay (__IO uint32_t nTime)
 Inserts a delay time.
void EXTI4_15_IRQHandler (void)
 This function handles External lines 0 interrupt request.
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_AlarmConfig (void)
 Configures the RTC clock source.
static void RTC_Config (void)
 Configures the RTC clock source.
void RTC_IRQHandler (void)
 This function handles RTC Auto wake-up interrupt request.
void SVC_Handler (void)
 This function handles SVCall exception.
static void SYSCLKConfig_STOP (void)
 Configures system clock after wake-up from STOP: enable HSE, PLL and select PLL as system clock source.
void SysTick_Handler (void)
 This function handles SysTick Handler.

Variables

__IO uint32_t TimingDelay
__IO uint32_t TimingDelay = 0

Function Documentation

void Delay ( __IO uint32_t  nTime)

Inserts a delay time.

Parameters:
nTime,:specifies the delay time length, with a base of 250 milliseconds.
Return values:
None

Definition at line 278 of file STM32F0xx_StdPeriph_Examples/COMP/COMP_LDR/main.c.

void EXTI4_15_IRQHandler ( void  )

This function handles External lines 0 interrupt request.

This function handles EXTI 6 request.

Parameters:
None
Return values:
None

Definition at line 137 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Stop/stm32f0xx_it.c.

void HardFault_Handler ( void  )

This function handles Hard Fault exception.

Parameters:
None
Return values:
None

Definition at line 68 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Stop/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_Stop/main.c.

References Delay(), RTC_AlarmConfig(), RTC_Config(), SYSCLKConfig_STOP(), and SystemCoreClock.

void NMI_Handler ( void  )

This function handles NMI exception.

Parameters:
None
Return values:
None

Definition at line 59 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Stop/stm32f0xx_it.c.

void PendSV_Handler ( void  )

This function handles PendSVC exception.

Parameters:
None
Return values:
None

Definition at line 90 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Stop/stm32f0xx_it.c.

static void RTC_AlarmConfig ( void  ) [static]

Configures the RTC clock source.

Parameters:
None
Return values:
None

Definition at line 194 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Stop/main.c.

Referenced by main().

static void RTC_Config ( void  ) [static]

Configures the RTC clock source.

Parameters:
None
Return values:
None

Definition at line 121 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Stop/main.c.

References EXTI_InitStructure, NVIC_InitStructure, and RTC_InitStructure.

Referenced by main().

void RTC_IRQHandler ( void  )

This function handles RTC Auto wake-up interrupt request.

Parameters:
None
Return values:
None

Definition at line 117 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Stop/stm32f0xx_it.c.

void SVC_Handler ( void  )

This function handles SVCall exception.

Parameters:
None
Return values:
None

Definition at line 81 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Stop/stm32f0xx_it.c.

static void SYSCLKConfig_STOP ( void  ) [static]

Configures system clock after wake-up from STOP: enable HSE, PLL and select PLL as system clock source.

Parameters:
None
Return values:
None

Definition at line 229 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Stop/main.c.

Referenced by main().

void SysTick_Handler ( void  )

This function handles SysTick Handler.

Parameters:
None
Return values:
None

Definition at line 99 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Stop/stm32f0xx_it.c.

References TimingDelay.


Variable Documentation

__IO uint32_t TimingDelay
__IO uint32_t TimingDelay = 0
STM32L1xx Standard Peripherals Library: Footer

 

 

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