Force or release APB2 peripheral reset.
More...
Force or release APB2 peripheral reset.
◆ __HAL_RCC_APB2_FORCE_RESET
#define __HAL_RCC_APB2_FORCE_RESET |
( |
| ) |
(RCC->APB2RSTR = 0xFFFFFFFFU) |
◆ __HAL_RCC_TIM1_FORCE_RESET
#define __HAL_RCC_TIM1_FORCE_RESET |
( |
| ) |
(RCC->APB2RSTR |= (RCC_APB2RSTR_TIM1RST)) |
◆ __HAL_RCC_USART1_FORCE_RESET
#define __HAL_RCC_USART1_FORCE_RESET |
( |
| ) |
(RCC->APB2RSTR |= (RCC_APB2RSTR_USART1RST)) |
◆ __HAL_RCC_USART6_FORCE_RESET
#define __HAL_RCC_USART6_FORCE_RESET |
( |
| ) |
(RCC->APB2RSTR |= (RCC_APB2RSTR_USART6RST)) |
◆ __HAL_RCC_ADC_FORCE_RESET
#define __HAL_RCC_ADC_FORCE_RESET |
( |
| ) |
(RCC->APB2RSTR |= (RCC_APB2RSTR_ADCRST)) |
◆ __HAL_RCC_SPI1_FORCE_RESET
#define __HAL_RCC_SPI1_FORCE_RESET |
( |
| ) |
(RCC->APB2RSTR |= (RCC_APB2RSTR_SPI1RST)) |
◆ __HAL_RCC_SYSCFG_FORCE_RESET
#define __HAL_RCC_SYSCFG_FORCE_RESET |
( |
| ) |
(RCC->APB2RSTR |= (RCC_APB2RSTR_SYSCFGRST)) |
◆ __HAL_RCC_TIM9_FORCE_RESET
#define __HAL_RCC_TIM9_FORCE_RESET |
( |
| ) |
(RCC->APB2RSTR |= (RCC_APB2RSTR_TIM9RST)) |
◆ __HAL_RCC_TIM11_FORCE_RESET
#define __HAL_RCC_TIM11_FORCE_RESET |
( |
| ) |
(RCC->APB2RSTR |= (RCC_APB2RSTR_TIM11RST)) |
◆ __HAL_RCC_APB2_RELEASE_RESET
#define __HAL_RCC_APB2_RELEASE_RESET |
( |
| ) |
(RCC->APB2RSTR = 0x00U) |
◆ __HAL_RCC_TIM1_RELEASE_RESET
#define __HAL_RCC_TIM1_RELEASE_RESET |
( |
| ) |
(RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM1RST)) |
◆ __HAL_RCC_USART1_RELEASE_RESET
#define __HAL_RCC_USART1_RELEASE_RESET |
( |
| ) |
(RCC->APB2RSTR &= ~(RCC_APB2RSTR_USART1RST)) |
◆ __HAL_RCC_USART6_RELEASE_RESET
#define __HAL_RCC_USART6_RELEASE_RESET |
( |
| ) |
(RCC->APB2RSTR &= ~(RCC_APB2RSTR_USART6RST)) |
◆ __HAL_RCC_ADC_RELEASE_RESET
#define __HAL_RCC_ADC_RELEASE_RESET |
( |
| ) |
(RCC->APB2RSTR &= ~(RCC_APB2RSTR_ADCRST)) |
◆ __HAL_RCC_SPI1_RELEASE_RESET
#define __HAL_RCC_SPI1_RELEASE_RESET |
( |
| ) |
(RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI1RST)) |
◆ __HAL_RCC_SYSCFG_RELEASE_RESET
#define __HAL_RCC_SYSCFG_RELEASE_RESET |
( |
| ) |
(RCC->APB2RSTR &= ~(RCC_APB2RSTR_SYSCFGRST)) |
◆ __HAL_RCC_TIM9_RELEASE_RESET
#define __HAL_RCC_TIM9_RELEASE_RESET |
( |
| ) |
(RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM9RST)) |
◆ __HAL_RCC_TIM11_RELEASE_RESET
#define __HAL_RCC_TIM11_RELEASE_RESET |
( |
| ) |
(RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM11RST)) |