mikroSDK Reference Manual

Topics

 RCC Private macros to check input parameters
 

Macros

#define IS_RCC_HSE_PREDIV(__DIV__)   (((__DIV__) == RCC_HSE_PREDIV_DIV1) || ((__DIV__) == RCC_HSE_PREDIV_DIV2))
 
#define IS_RCC_PLL_MUL(__MUL__)
 
#define IS_RCC_MCO1SOURCE(__SOURCE__)
 
#define IS_RCC_ADCPLLCLK_DIV(__ADCCLK__)
 
#define IS_RCC_PERIPHCLOCK(__SELECTION__)
 

Macro Definition Documentation

◆ IS_RCC_ADCPLLCLK_DIV

#define IS_RCC_ADCPLLCLK_DIV ( __ADCCLK__)
Value:
(((__ADCCLK__) == RCC_ADCPCLK2_DIV2) || ((__ADCCLK__) == RCC_ADCPCLK2_DIV4) || \
((__ADCCLK__) == RCC_ADCPCLK2_DIV6) || ((__ADCCLK__) == RCC_ADCPCLK2_DIV8))

◆ IS_RCC_MCO1SOURCE

#define IS_RCC_MCO1SOURCE ( __SOURCE__)
Value:
(((__SOURCE__) == RCC_MCO1SOURCE_SYSCLK) || ((__SOURCE__) == RCC_MCO1SOURCE_HSI) \
|| ((__SOURCE__) == RCC_MCO1SOURCE_HSE) || ((__SOURCE__) == RCC_MCO1SOURCE_PLLCLK) \
|| ((__SOURCE__) == RCC_MCO1SOURCE_NOCLOCK))

◆ IS_RCC_PERIPHCLOCK

#define IS_RCC_PERIPHCLOCK ( __SELECTION__)
Value:
((((__SELECTION__) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC) || \
(((__SELECTION__) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC))

◆ IS_RCC_PLL_MUL

#define IS_RCC_PLL_MUL ( __MUL__)
Value:
(((__MUL__) == RCC_PLL_MUL2) || ((__MUL__) == RCC_PLL_MUL3) || \
((__MUL__) == RCC_PLL_MUL4) || ((__MUL__) == RCC_PLL_MUL5) || \
((__MUL__) == RCC_PLL_MUL6) || ((__MUL__) == RCC_PLL_MUL7) || \
((__MUL__) == RCC_PLL_MUL8) || ((__MUL__) == RCC_PLL_MUL9) || \
((__MUL__) == RCC_PLL_MUL10) || ((__MUL__) == RCC_PLL_MUL11) || \
((__MUL__) == RCC_PLL_MUL12) || ((__MUL__) == RCC_PLL_MUL13) || \
((__MUL__) == RCC_PLL_MUL14) || ((__MUL__) == RCC_PLL_MUL15) || \
((__MUL__) == RCC_PLL_MUL16))