Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
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.
Generated on Tue Jul 12 2022 17:34:46 by
1.7.2