STM32F0xx Standard Peripherals Firmware Library: USART_WakeUpFromStop

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Functions

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 RestoreConfiguration (void)
 Restore peripheral config before entering STOP mode.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void USART2_IRQHandler (void)
 This function handles PPP interrupt request.
static void USART_Config (void)
 Configure the USART Device.
static void WakeUp_StartBitMethod (void)
 Start Bit Method to Wake Up USART from Stop mode Test.

Variables

__IO uint8_t Counter = 0
uint8_t DataReceived = 0
__IO uint8_t InterruptCounter
__IO uint8_t InterruptCounter = 0x00

Function Documentation

void HardFault_Handler ( void  )

This function handles Hard Fault exception.

Parameters:
None
Return values:
None

Definition at line 69 of file STM32F0xx_StdPeriph_Examples/USART/USART_WakeUpFromStop/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/USART/USART_WakeUpFromStop/main.c.

References RestoreConfiguration(), SystemCoreClock, USART_Config(), and WakeUp_StartBitMethod().

void NMI_Handler ( void  )

This function handles NMI exception.

Parameters:
None
Return values:
None

Definition at line 60 of file STM32F0xx_StdPeriph_Examples/USART/USART_WakeUpFromStop/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/USART/USART_WakeUpFromStop/stm32f0xx_it.c.

static void RestoreConfiguration ( void  ) [static]

Restore peripheral config before entering STOP mode.

Parameters:
None
Return values:
None

Definition at line 222 of file STM32F0xx_StdPeriph_Examples/USART/USART_WakeUpFromStop/main.c.

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/USART/USART_WakeUpFromStop/stm32f0xx_it.c.

void SysTick_Handler ( void  )

This function handles SysTick Handler.

Parameters:
None
Return values:
None

Definition at line 100 of file STM32F0xx_StdPeriph_Examples/USART/USART_WakeUpFromStop/stm32f0xx_it.c.

References Counter.

void USART2_IRQHandler ( void  )

This function handles PPP interrupt request.

This function handles USARTy global interrupt request.

Parameters:
None
Return values:
NoneThis function handles USART interrupt request.
Parameters:
None
Return values:
None

Definition at line 152 of file STM32F0xx_StdPeriph_Examples/USART/USART_WakeUpFromStop/stm32f0xx_it.c.

References aRxBuffer, BUFFER_SIZE, InterruptCounter, ReceiveState, and RxCounter.

static void USART_Config ( void  ) [static]

Configure the USART Device.

Parameters:
None
Return values:
None

Definition at line 147 of file STM32F0xx_StdPeriph_Examples/USART/USART_WakeUpFromStop/main.c.

References GPIO_InitStructure, NVIC_InitStructure, and USART_InitStructure.

Referenced by main().

static void WakeUp_StartBitMethod ( void  ) [static]

Start Bit Method to Wake Up USART from Stop mode Test.

Parameters:
None
Return values:
None

Definition at line 95 of file STM32F0xx_StdPeriph_Examples/USART/USART_WakeUpFromStop/main.c.

References DataReceived, and InterruptCounter.

Referenced by main().


Variable Documentation

STM32L1xx Standard Peripherals Library: Footer

 

 

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