Prusa MINI Firmware overview
RCC BitAddress AliasRegion

RCC registers bit address in the alias region. More...

Collaboration diagram for RCC BitAddress AliasRegion:

Macros

#define RCC_OFFSET   (RCC_BASE - PERIPH_BASE)
 
#define RCC_CR_OFFSET   (RCC_OFFSET + 0x00U)
 
#define RCC_HSION_BIT_NUMBER   0x00U
 
#define RCC_CR_HSION_BB   (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_HSION_BIT_NUMBER * 4U))
 
#define RCC_CSSON_BIT_NUMBER   0x13U
 
#define RCC_CR_CSSON_BB   (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_CSSON_BIT_NUMBER * 4U))
 
#define RCC_PLLON_BIT_NUMBER   0x18U
 
#define RCC_CR_PLLON_BB   (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_PLLON_BIT_NUMBER * 4U))
 
#define RCC_BDCR_OFFSET   (RCC_OFFSET + 0x70U)
 
#define RCC_RTCEN_BIT_NUMBER   0x0FU
 
#define RCC_BDCR_RTCEN_BB   (PERIPH_BB_BASE + (RCC_BDCR_OFFSET * 32U) + (RCC_RTCEN_BIT_NUMBER * 4U))
 
#define RCC_BDRST_BIT_NUMBER   0x10U
 
#define RCC_BDCR_BDRST_BB   (PERIPH_BB_BASE + (RCC_BDCR_OFFSET * 32U) + (RCC_BDRST_BIT_NUMBER * 4U))
 
#define RCC_CSR_OFFSET   (RCC_OFFSET + 0x74U)
 
#define RCC_LSION_BIT_NUMBER   0x00U
 
#define RCC_CSR_LSION_BB   (PERIPH_BB_BASE + (RCC_CSR_OFFSET * 32U) + (RCC_LSION_BIT_NUMBER * 4U))
 
#define RCC_CR_BYTE2_ADDRESS   0x40023802U
 
#define RCC_CIR_BYTE1_ADDRESS   ((uint32_t)(RCC_BASE + 0x0CU + 0x01U))
 
#define RCC_CIR_BYTE2_ADDRESS   ((uint32_t)(RCC_BASE + 0x0CU + 0x02U))
 
#define RCC_BDCR_BYTE0_ADDRESS   (PERIPH_BASE + RCC_BDCR_OFFSET)
 
#define RCC_DBP_TIMEOUT_VALUE   2U
 
#define RCC_LSE_TIMEOUT_VALUE   LSE_STARTUP_TIMEOUT
 
#define HSE_TIMEOUT_VALUE   HSE_STARTUP_TIMEOUT
 
#define HSI_TIMEOUT_VALUE   2U /* 2 ms */
 
#define LSI_TIMEOUT_VALUE   2U /* 2 ms */
 
#define CLOCKSWITCH_TIMEOUT_VALUE   5000U /* 5 s */
 

Detailed Description

RCC registers bit address in the alias region.

Macro Definition Documentation

◆ RCC_OFFSET

#define RCC_OFFSET   (RCC_BASE - PERIPH_BASE)

◆ RCC_CR_OFFSET

#define RCC_CR_OFFSET   (RCC_OFFSET + 0x00U)

◆ RCC_HSION_BIT_NUMBER

#define RCC_HSION_BIT_NUMBER   0x00U

◆ RCC_CR_HSION_BB

#define RCC_CR_HSION_BB   (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_HSION_BIT_NUMBER * 4U))

◆ RCC_CSSON_BIT_NUMBER

#define RCC_CSSON_BIT_NUMBER   0x13U

◆ RCC_CR_CSSON_BB

#define RCC_CR_CSSON_BB   (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_CSSON_BIT_NUMBER * 4U))

◆ RCC_PLLON_BIT_NUMBER

#define RCC_PLLON_BIT_NUMBER   0x18U

◆ RCC_CR_PLLON_BB

#define RCC_CR_PLLON_BB   (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_PLLON_BIT_NUMBER * 4U))

◆ RCC_BDCR_OFFSET

#define RCC_BDCR_OFFSET   (RCC_OFFSET + 0x70U)

◆ RCC_RTCEN_BIT_NUMBER

#define RCC_RTCEN_BIT_NUMBER   0x0FU

◆ RCC_BDCR_RTCEN_BB

#define RCC_BDCR_RTCEN_BB   (PERIPH_BB_BASE + (RCC_BDCR_OFFSET * 32U) + (RCC_RTCEN_BIT_NUMBER * 4U))

◆ RCC_BDRST_BIT_NUMBER

#define RCC_BDRST_BIT_NUMBER   0x10U

◆ RCC_BDCR_BDRST_BB

#define RCC_BDCR_BDRST_BB   (PERIPH_BB_BASE + (RCC_BDCR_OFFSET * 32U) + (RCC_BDRST_BIT_NUMBER * 4U))

◆ RCC_CSR_OFFSET

#define RCC_CSR_OFFSET   (RCC_OFFSET + 0x74U)

◆ RCC_LSION_BIT_NUMBER

#define RCC_LSION_BIT_NUMBER   0x00U

◆ RCC_CSR_LSION_BB

#define RCC_CSR_LSION_BB   (PERIPH_BB_BASE + (RCC_CSR_OFFSET * 32U) + (RCC_LSION_BIT_NUMBER * 4U))

◆ RCC_CR_BYTE2_ADDRESS

#define RCC_CR_BYTE2_ADDRESS   0x40023802U

◆ RCC_CIR_BYTE1_ADDRESS

#define RCC_CIR_BYTE1_ADDRESS   ((uint32_t)(RCC_BASE + 0x0CU + 0x01U))

◆ RCC_CIR_BYTE2_ADDRESS

#define RCC_CIR_BYTE2_ADDRESS   ((uint32_t)(RCC_BASE + 0x0CU + 0x02U))

◆ RCC_BDCR_BYTE0_ADDRESS

#define RCC_BDCR_BYTE0_ADDRESS   (PERIPH_BASE + RCC_BDCR_OFFSET)

◆ RCC_DBP_TIMEOUT_VALUE

#define RCC_DBP_TIMEOUT_VALUE   2U

◆ RCC_LSE_TIMEOUT_VALUE

#define RCC_LSE_TIMEOUT_VALUE   LSE_STARTUP_TIMEOUT

◆ HSE_TIMEOUT_VALUE

#define HSE_TIMEOUT_VALUE   HSE_STARTUP_TIMEOUT

◆ HSI_TIMEOUT_VALUE

#define HSI_TIMEOUT_VALUE   2U /* 2 ms */

◆ LSI_TIMEOUT_VALUE

#define LSI_TIMEOUT_VALUE   2U /* 2 ms */

◆ CLOCKSWITCH_TIMEOUT_VALUE

#define CLOCKSWITCH_TIMEOUT_VALUE   5000U /* 5 s */