DIY Logging Volt/Ampmeter
APB1 Force Release Reset

Force or release APB1 peripheral reset. More...

Macros

#define __HAL_RCC_APB1_FORCE_RESET()   (RCC->APB2RSTR = 0xFFFFFFFFU)
 
#define __HAL_RCC_TIM2_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM2RST))
 
#define __HAL_RCC_TIM3_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM3RST))
 
#define __HAL_RCC_WWDG_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_WWDGRST))
 
#define __HAL_RCC_USART2_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_USART2RST))
 
#define __HAL_RCC_I2C1_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C1RST))
 
#define __HAL_RCC_BKP_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_BKPRST))
 
#define __HAL_RCC_PWR_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_PWRRST))
 
#define __HAL_RCC_APB1_RELEASE_RESET()   (RCC->APB1RSTR = 0x00)
 
#define __HAL_RCC_TIM2_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM2RST))
 
#define __HAL_RCC_TIM3_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM3RST))
 
#define __HAL_RCC_WWDG_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_WWDGRST))
 
#define __HAL_RCC_USART2_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_USART2RST))
 
#define __HAL_RCC_I2C1_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C1RST))
 
#define __HAL_RCC_BKP_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_BKPRST))
 
#define __HAL_RCC_PWR_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_PWRRST))
 

Detailed Description

Force or release APB1 peripheral reset.

Macro Definition Documentation

◆ __HAL_RCC_APB1_FORCE_RESET

#define __HAL_RCC_APB1_FORCE_RESET ( )    (RCC->APB2RSTR = 0xFFFFFFFFU)

Definition at line 617 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_APB1_RELEASE_RESET

#define __HAL_RCC_APB1_RELEASE_RESET ( )    (RCC->APB1RSTR = 0x00)

Definition at line 627 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_BKP_FORCE_RESET

#define __HAL_RCC_BKP_FORCE_RESET ( )    (RCC->APB1RSTR |= (RCC_APB1RSTR_BKPRST))

Definition at line 624 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_BKP_RELEASE_RESET

#define __HAL_RCC_BKP_RELEASE_RESET ( )    (RCC->APB1RSTR &= ~(RCC_APB1RSTR_BKPRST))

Definition at line 634 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_I2C1_FORCE_RESET

#define __HAL_RCC_I2C1_FORCE_RESET ( )    (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C1RST))

Definition at line 622 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_I2C1_RELEASE_RESET

#define __HAL_RCC_I2C1_RELEASE_RESET ( )    (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C1RST))

Definition at line 632 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_PWR_FORCE_RESET

#define __HAL_RCC_PWR_FORCE_RESET ( )    (RCC->APB1RSTR |= (RCC_APB1RSTR_PWRRST))

Definition at line 625 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_PWR_RELEASE_RESET

#define __HAL_RCC_PWR_RELEASE_RESET ( )    (RCC->APB1RSTR &= ~(RCC_APB1RSTR_PWRRST))

Definition at line 635 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_TIM2_FORCE_RESET

#define __HAL_RCC_TIM2_FORCE_RESET ( )    (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM2RST))

Definition at line 618 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_TIM2_RELEASE_RESET

#define __HAL_RCC_TIM2_RELEASE_RESET ( )    (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM2RST))

Definition at line 628 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_TIM3_FORCE_RESET

#define __HAL_RCC_TIM3_FORCE_RESET ( )    (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM3RST))

Definition at line 619 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_TIM3_RELEASE_RESET

#define __HAL_RCC_TIM3_RELEASE_RESET ( )    (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM3RST))

Definition at line 629 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_USART2_FORCE_RESET

#define __HAL_RCC_USART2_FORCE_RESET ( )    (RCC->APB1RSTR |= (RCC_APB1RSTR_USART2RST))

Definition at line 621 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_USART2_RELEASE_RESET

#define __HAL_RCC_USART2_RELEASE_RESET ( )    (RCC->APB1RSTR &= ~(RCC_APB1RSTR_USART2RST))

Definition at line 631 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_WWDG_FORCE_RESET

#define __HAL_RCC_WWDG_FORCE_RESET ( )    (RCC->APB1RSTR |= (RCC_APB1RSTR_WWDGRST))

Definition at line 620 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_WWDG_RELEASE_RESET

#define __HAL_RCC_WWDG_RELEASE_RESET ( )    (RCC->APB1RSTR &= ~(RCC_APB1RSTR_WWDGRST))

Definition at line 630 of file stm32f1xx_hal_rcc.h.