Prusa MINI Firmware overview
Collaboration diagram for LSI Configuration:

Macros

#define __HAL_RCC_LSI_ENABLE()   (*(__IO uint32_t *) RCC_CSR_LSION_BB = ENABLE)
 Macros to enable or disable the Internal Low Speed oscillator (LSI). More...
 
#define __HAL_RCC_LSI_DISABLE()   (*(__IO uint32_t *) RCC_CSR_LSION_BB = DISABLE)
 

Detailed Description

Macro Definition Documentation

◆ __HAL_RCC_LSI_ENABLE

#define __HAL_RCC_LSI_ENABLE ( )    (*(__IO uint32_t *) RCC_CSR_LSION_BB = ENABLE)

Macros to enable or disable the Internal Low Speed oscillator (LSI).

Note
After enabling the LSI, the application software should wait on LSIRDY flag to be set indicating that LSI clock is stable and can be used to clock the IWDG and/or the RTC.
LSI can not be disabled if the IWDG is running.
When the LSI is stopped, LSIRDY flag goes low after 6 LSI oscillator clock cycles.

◆ __HAL_RCC_LSI_DISABLE

#define __HAL_RCC_LSI_DISABLE ( )    (*(__IO uint32_t *) RCC_CSR_LSION_BB = DISABLE)