Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

STOP Mode functions

STOP Mode functions
[USART_Private_Functions]

STOP Mode functions. More...

Functions

void USART_STOPModeCmd (USART_TypeDef *USARTx, FunctionalState NewState)
 Enables or disables the specified USART peripheral in STOP Mode.
void USART_StopModeWakeUpSourceConfig (USART_TypeDef *USARTx, uint32_t USART_WakeUpSource)
 Selects the USART WakeUp method form stop mode.

Detailed Description

STOP Mode functions.

 ===============================================================================
                        ##### STOP Mode functions #####
 ===============================================================================
    [..] This subsection provides a set of functions allowing to manage 
         WakeUp from STOP mode.

    [..] The USART is able to WakeUp from Stop Mode if USART clock is set to HSI
         or LSI.
         
    [..] The WakeUp source is configured by calling USART_StopModeWakeUpSourceConfig()
         function.
         
    [..] After configuring the source of WakeUp and before entering in Stop Mode 
         USART_STOPModeCmd() function should be called to allow USART WakeUp.
                           

Function Documentation

void USART_STOPModeCmd ( USART_TypeDef *  USARTx,
FunctionalState  NewState 
)

Enables or disables the specified USART peripheral in STOP Mode.

Parameters:
USARTx,:Select the USART peripheral. This parameter can be one of the following values: USART1 or USART2 or USART3 or UART4 or UART5.
NewState,:new state of the USARTx peripheral state in stop mode. This parameter can be: ENABLE or DISABLE.
Note:
This function has to be called when USART clock is set to HSI or LSE.
Return values:
None

Definition at line 760 of file stm32f30x_usart.c.

void USART_StopModeWakeUpSourceConfig ( USART_TypeDef *  USARTx,
uint32_t  USART_WakeUpSource 
)

Selects the USART WakeUp method form stop mode.

Parameters:
USARTx,:Select the USART peripheral. This parameter can be one of the following values: USART1 or USART2 or USART3 or UART4 or UART5.
USART_WakeUp,:specifies the selected USART wakeup method. This parameter can be one of the following values:

  • USART_WakeUpSource_AddressMatch: WUF active on address match.
  • USART_WakeUpSource_StartBit: WUF active on Start bit detection.
  • USART_WakeUpSource_RXNE: WUF active on RXNE.
Note:
This function has to be called before calling USART_Cmd() function.
Return values:
None

Definition at line 793 of file stm32f30x_usart.c.