Prusa MINI Firmware overview
APB2 Force Release Reset

Force or release APB2 peripheral reset. More...

Collaboration diagram for APB2 Force Release Reset:

Macros

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

Detailed Description

Force or release APB2 peripheral reset.

Macro Definition Documentation

◆ __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))