PWR_STOP
[STM32F10x_StdPeriph_Examples]

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void Delay (__IO uint32_t nTime)
 Inserts a delay time.
void EXTI9_5_IRQHandler (void)
 This function handles External lines 9 to 5 interrupt request.
void EXTI_Configuration (void)
 Configures EXTI Lines.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void MemManage_Handler (void)
 This function handles Memory Manage exception.
void NMI_Handler (void)
 This function handles NMI exception.
void NVIC_Configuration (void)
 Configures NVIC and Vector Table base location.
void PendSV_Handler (void)
 This function handles PendSV_Handler exception.
void RTC_Configuration (void)
 Configures RTC clock source and prescaler.
void RTCAlarm_IRQHandler (void)
 This function handles RTC Alarm interrupt request.
void SVC_Handler (void)
 This function handles SVCall exception.
void SYSCLKConfig_STOP (void)
 Configures system clock after wake-up from STOP: enable HSE, PLL and select PLL as system clock source.
void SysTick_Configuration (void)
 Configures the SysTick to generate an interrupt each 1 millisecond.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

ErrorStatus HSEStartUpStatus
__IO uint32_t TimingDelay = 0
__IO uint32_t TimingDelay

Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 88 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 123 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_it.c.

void Delay ( __IO uint32_t  nTime  ) 

Inserts a delay time.

Parameters:
nTime,: specifies the delay time length, in milliseconds.
Return values:
None 

Definition at line 264 of file STM32F10x_StdPeriph_Examples/PWR/STOP/main.c.

References TimingDelay.

void EXTI9_5_IRQHandler ( void   ) 

This function handles External lines 9 to 5 interrupt request.

This function handles EXTI Lines 9 to 5 interrupts requests.

Parameters:
None 
Return values:
None 

Definition at line 155 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_it.c.

References EXTI_ClearITPendingBit(), EXTI_GetITStatus(), KEY_BUTTON_EXTI_LINE, LED2, RESET, and STM_EVAL_LEDToggle().

void EXTI_Configuration ( void   ) 
void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 62 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_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_stm32f10x_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file

Definition at line 55 of file STM32F10x_StdPeriph_Examples/PWR/STOP/main.c.

References BUTTON_KEY, BUTTON_MODE_EXTI, Delay(), ENABLE, EXTI_Configuration(), LED1, LED2, LED3, NVIC_Configuration(), PWR_EnterSTOPMode(), PWR_Regulator_LowPower, PWR_STOPEntry_WFI, RCC_APB1Periph_BKP, RCC_APB1Periph_PWR, RCC_APB1PeriphClockCmd(), RESET, RTC_ClearFlag(), RTC_Configuration(), RTC_FLAG_SEC, RTC_GetCounter(), RTC_GetFlagStatus(), RTC_SetAlarm(), RTC_WaitForLastTask(), STM_EVAL_LEDInit(), STM_EVAL_LEDOff(), STM_EVAL_LEDOn(), STM_EVAL_PBInit(), SYSCLKConfig_STOP(), and SysTick_Configuration().

void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 75 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 53 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_it.c.

void NVIC_Configuration ( void   ) 
void PendSV_Handler ( void   ) 

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 132 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_it.c.

void RTC_Configuration ( void   ) 
void RTCAlarm_IRQHandler ( void   ) 

This function handles RTC Alarm interrupt request.

Parameters:
None 
Return values:
None 

Definition at line 172 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_it.c.

References EXTI_ClearITPendingBit(), EXTI_Line17, LED3, PWR_ClearFlag(), PWR_FLAG_WU, PWR_GetFlagStatus(), RESET, RTC_ClearITPendingBit(), RTC_GetITStatus(), RTC_IT_ALR, RTC_WaitForLastTask(), and STM_EVAL_LEDToggle().

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 114 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_it.c.

void SYSCLKConfig_STOP ( void   ) 

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 124 of file STM32F10x_StdPeriph_Examples/PWR/STOP/main.c.

References ENABLE, HSEStartUpStatus, RCC_FLAG_PLLRDY, RCC_GetFlagStatus(), RCC_GetSYSCLKSource(), RCC_HSE_ON, RCC_HSEConfig(), RCC_PLLCmd(), RCC_SYSCLKConfig(), RCC_SYSCLKSource_PLLCLK, RCC_WaitForHSEStartUp(), RESET, and SUCCESS.

Referenced by main().

void SysTick_Configuration ( void   ) 

Configures the SysTick to generate an interrupt each 1 millisecond.

Parameters:
None 
Return values:
None 

Definition at line 247 of file STM32F10x_StdPeriph_Examples/PWR/STOP/main.c.

References SystemCoreClock, and SysTick_IRQn.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 141 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_it.c.

References TimingDelay.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 101 of file STM32F10x_StdPeriph_Examples/PWR/STOP/stm32f10x_it.c.


Variable Documentation

Definition at line 38 of file STM32F10x_StdPeriph_Examples/PWR/STOP/main.c.

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

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32