mikroSDK Reference Manual

Macros

#define __HAL_RCC_LSI_ENABLE()   (*(__IO uint32_t *) RCC_CSR_LSION_BB = ENABLE)
 Macro to enable the Internal Low Speed oscillator (LSI).
 
#define __HAL_RCC_LSI_DISABLE()   (*(__IO uint32_t *) RCC_CSR_LSION_BB = DISABLE)
 Macro to disable the Internal Low Speed oscillator (LSI).
 
#define __HAL_RCC_LSI_ENABLE()   (*(__IO uint32_t *) RCC_CSR_LSION_BB = ENABLE)
 Macros to enable or disable the Internal Low Speed oscillator (LSI).
 
#define __HAL_RCC_LSI_DISABLE()   (*(__IO uint32_t *) RCC_CSR_LSION_BB = DISABLE)
 
#define __HAL_RCC_LSI_ENABLE()   (*(__IO uint32_t *) RCC_CSR_LSION_BB = ENABLE)
 Macros to enable or disable the Internal Low Speed oscillator (LSI).
 
#define __HAL_RCC_LSI_DISABLE()   (*(__IO uint32_t *) RCC_CSR_LSION_BB = DISABLE)
 
#define __HAL_RCC_LSI_ENABLE()   (RCC->CSR |= (RCC_CSR_LSION))
 Macros to enable or disable the Internal Low Speed oscillator (LSI).
 
#define __HAL_RCC_LSI_DISABLE()   (RCC->CSR &= ~(RCC_CSR_LSION))
 

Macro Definition Documentation

◆ __HAL_RCC_LSI_DISABLE

#define __HAL_RCC_LSI_DISABLE ( )    (*(__IO uint32_t *) RCC_CSR_LSION_BB = DISABLE)
Note
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_ENABLE [1/4]

#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.
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_ENABLE [2/4]

#define __HAL_RCC_LSI_ENABLE ( )    (*(__IO uint32_t *) RCC_CSR_LSION_BB = ENABLE)
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_ENABLE [3/4]

#define __HAL_RCC_LSI_ENABLE ( )    (*(__IO uint32_t *) RCC_CSR_LSION_BB = ENABLE)
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_ENABLE [4/4]

#define __HAL_RCC_LSI_ENABLE ( )    (RCC->CSR |= (RCC_CSR_LSION))
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.