Prusa MINI Firmware overview
APB1 Force Release Reset

Force or release APB1 peripheral reset. More...

Collaboration diagram for APB1 Force Release Reset:

Macros

#define __HAL_RCC_APB1_FORCE_RESET()   (RCC->APB1RSTR = 0xFFFFFFFFU)
 
#define __HAL_RCC_TIM5_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM5RST))
 
#define __HAL_RCC_WWDG_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_WWDGRST))
 
#define __HAL_RCC_SPI2_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI2RST))
 
#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_I2C2_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C2RST))
 
#define __HAL_RCC_PWR_FORCE_RESET()   (RCC->APB1RSTR |= (RCC_APB1RSTR_PWRRST))
 
#define __HAL_RCC_APB1_RELEASE_RESET()   (RCC->APB1RSTR = 0x00U)
 
#define __HAL_RCC_TIM5_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM5RST))
 
#define __HAL_RCC_WWDG_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_WWDGRST))
 
#define __HAL_RCC_SPI2_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI2RST))
 
#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_I2C2_RELEASE_RESET()   (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C2RST))
 
#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->APB1RSTR = 0xFFFFFFFFU)

◆ __HAL_RCC_TIM5_FORCE_RESET

#define __HAL_RCC_TIM5_FORCE_RESET ( )    (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM5RST))

◆ __HAL_RCC_WWDG_FORCE_RESET

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

◆ __HAL_RCC_SPI2_FORCE_RESET

#define __HAL_RCC_SPI2_FORCE_RESET ( )    (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI2RST))

◆ __HAL_RCC_USART2_FORCE_RESET

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

◆ __HAL_RCC_I2C1_FORCE_RESET

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

◆ __HAL_RCC_I2C2_FORCE_RESET

#define __HAL_RCC_I2C2_FORCE_RESET ( )    (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C2RST))

◆ __HAL_RCC_PWR_FORCE_RESET

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

◆ __HAL_RCC_APB1_RELEASE_RESET

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

◆ __HAL_RCC_TIM5_RELEASE_RESET

#define __HAL_RCC_TIM5_RELEASE_RESET ( )    (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM5RST))

◆ __HAL_RCC_WWDG_RELEASE_RESET

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

◆ __HAL_RCC_SPI2_RELEASE_RESET

#define __HAL_RCC_SPI2_RELEASE_RESET ( )    (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI2RST))

◆ __HAL_RCC_USART2_RELEASE_RESET

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

◆ __HAL_RCC_I2C1_RELEASE_RESET

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

◆ __HAL_RCC_I2C2_RELEASE_RESET

#define __HAL_RCC_I2C2_RELEASE_RESET ( )    (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C2RST))

◆ __HAL_RCC_PWR_RELEASE_RESET

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