mikroSDK Reference Manual

Topics

 Alias define maintained for legacy
 
 RCC Private macros to check input parameters
 

Macros

#define IS_RCC_PLLSOURCE(__SOURCE__)
 
#define IS_RCC_OSCILLATORTYPE(__OSCILLATOR__)
 
#define IS_RCC_HSE(__HSE__)
 
#define IS_RCC_LSE(__LSE__)
 
#define IS_RCC_HSI(__HSI__)   (((__HSI__) == RCC_HSI_OFF) || ((__HSI__) == RCC_HSI_ON))
 
#define IS_RCC_CALIBRATION_VALUE(__VALUE__)   ((__VALUE__) <= 0x1FU)
 
#define IS_RCC_LSI(__LSI__)   (((__LSI__) == RCC_LSI_OFF) || ((__LSI__) == RCC_LSI_ON))
 
#define IS_RCC_PLL(__PLL__)
 
#define IS_RCC_CLOCKTYPE(CLK)
 
#define IS_RCC_SYSCLKSOURCE(__SOURCE__)
 
#define IS_RCC_SYSCLKSOURCE_STATUS(__SOURCE__)
 
#define IS_RCC_HCLK(__HCLK__)
 
#define IS_RCC_PCLK(__PCLK__)
 
#define IS_RCC_MCO(__MCO__)   ((__MCO__) == RCC_MCO)
 
#define IS_RCC_MCODIV(__DIV__)   (((__DIV__) == RCC_MCODIV_1))
 
#define IS_RCC_RTCCLKSOURCE(__SOURCE__)
 

Macro Definition Documentation

◆ IS_RCC_CLOCKTYPE

#define IS_RCC_CLOCKTYPE ( CLK)
Value:
#define RCC_CLOCKTYPE_SYSCLK
Definition stm32f1xx_hal_rcc.h:171
#define RCC_CLOCKTYPE_HCLK
Definition stm32f1xx_hal_rcc.h:172
#define RCC_CLOCKTYPE_PCLK1
Definition stm32f1xx_hal_rcc.h:173
#define RCC_CLOCKTYPE_PCLK2
Definition stm32f1xx_hal_rcc.h:174

◆ IS_RCC_HCLK

#define IS_RCC_HCLK ( __HCLK__)
Value:
(((__HCLK__) == RCC_SYSCLK_DIV1) || ((__HCLK__) == RCC_SYSCLK_DIV2) || \
((__HCLK__) == RCC_SYSCLK_DIV4) || ((__HCLK__) == RCC_SYSCLK_DIV8) || \
((__HCLK__) == RCC_SYSCLK_DIV16) || ((__HCLK__) == RCC_SYSCLK_DIV64) || \
((__HCLK__) == RCC_SYSCLK_DIV128) || ((__HCLK__) == RCC_SYSCLK_DIV256) || \
((__HCLK__) == RCC_SYSCLK_DIV512))
#define RCC_SYSCLK_DIV1
Definition stm32f1xx_hal_rcc.h:205
#define RCC_SYSCLK_DIV128
Definition stm32f1xx_hal_rcc.h:211
#define RCC_SYSCLK_DIV4
Definition stm32f1xx_hal_rcc.h:207
#define RCC_SYSCLK_DIV64
Definition stm32f1xx_hal_rcc.h:210
#define RCC_SYSCLK_DIV8
Definition stm32f1xx_hal_rcc.h:208
#define RCC_SYSCLK_DIV16
Definition stm32f1xx_hal_rcc.h:209
#define RCC_SYSCLK_DIV256
Definition stm32f1xx_hal_rcc.h:212
#define RCC_SYSCLK_DIV512
Definition stm32f1xx_hal_rcc.h:213
#define RCC_SYSCLK_DIV2
Definition stm32f1xx_hal_rcc.h:206

◆ IS_RCC_HSE

#define IS_RCC_HSE ( __HSE__)
Value:
(((__HSE__) == RCC_HSE_OFF) || ((__HSE__) == RCC_HSE_ON) || \
((__HSE__) == RCC_HSE_BYPASS))
#define RCC_HSE_OFF
Definition stm32f1xx_hal_rcc.h:117
#define RCC_HSE_BYPASS
Definition stm32f1xx_hal_rcc.h:119
#define RCC_HSE_ON
Definition stm32f1xx_hal_rcc.h:118

◆ IS_RCC_LSE

#define IS_RCC_LSE ( __LSE__)
Value:
(((__LSE__) == RCC_LSE_OFF) || ((__LSE__) == RCC_LSE_ON) || \
((__LSE__) == RCC_LSE_BYPASS))
#define RCC_LSE_OFF
Definition stm32f1xx_hal_rcc.h:127
#define RCC_LSE_BYPASS
Definition stm32f1xx_hal_rcc.h:129
#define RCC_LSE_ON
Definition stm32f1xx_hal_rcc.h:128

◆ IS_RCC_OSCILLATORTYPE

#define IS_RCC_OSCILLATORTYPE ( __OSCILLATOR__)
Value:
(((__OSCILLATOR__) == RCC_OSCILLATORTYPE_NONE) || \
(((__OSCILLATOR__) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) || \
(((__OSCILLATOR__) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) || \
(((__OSCILLATOR__) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) || \
(((__OSCILLATOR__) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE))

◆ IS_RCC_PCLK

#define IS_RCC_PCLK ( __PCLK__)
Value:
(((__PCLK__) == RCC_HCLK_DIV1) || ((__PCLK__) == RCC_HCLK_DIV2) || \
((__PCLK__) == RCC_HCLK_DIV4) || ((__PCLK__) == RCC_HCLK_DIV8) || \
((__PCLK__) == RCC_HCLK_DIV16))
#define RCC_HCLK_DIV16
Definition stm32f1xx_hal_rcc.h:226
#define RCC_HCLK_DIV2
Definition stm32f1xx_hal_rcc.h:223
#define RCC_HCLK_DIV4
Definition stm32f1xx_hal_rcc.h:224
#define RCC_HCLK_DIV1
Definition stm32f1xx_hal_rcc.h:222
#define RCC_HCLK_DIV8
Definition stm32f1xx_hal_rcc.h:225

◆ IS_RCC_PLL

#define IS_RCC_PLL ( __PLL__)
Value:
(((__PLL__) == RCC_PLL_NONE) || ((__PLL__) == RCC_PLL_OFF) || \
((__PLL__) == RCC_PLL_ON))
#define RCC_PLL_OFF
Definition stm32f1xx_hal_rcc.h:161
#define RCC_PLL_NONE
Definition stm32f1xx_hal_rcc.h:160
#define RCC_PLL_ON
Definition stm32f1xx_hal_rcc.h:162

◆ IS_RCC_PLLSOURCE

#define IS_RCC_PLLSOURCE ( __SOURCE__)
Value:
(((__SOURCE__) == RCC_PLLSOURCE_HSI_DIV2) || \
((__SOURCE__) == RCC_PLLSOURCE_HSE))
#define RCC_PLLSOURCE_HSI_DIV2
Definition stm32f1xx_hal_rcc.h:95
#define RCC_PLLSOURCE_HSE
Definition stm32f1xx_hal_rcc.h:96

◆ IS_RCC_RTCCLKSOURCE

#define IS_RCC_RTCCLKSOURCE ( __SOURCE__)
Value:
(((__SOURCE__) == RCC_RTCCLKSOURCE_NO_CLK) || \
((__SOURCE__) == RCC_RTCCLKSOURCE_LSE) || \
((__SOURCE__) == RCC_RTCCLKSOURCE_LSI) || \
((__SOURCE__) == RCC_RTCCLKSOURCE_HSE_DIV128))
#define RCC_RTCCLKSOURCE_LSE
Definition stm32f1xx_hal_rcc.h:236
#define RCC_RTCCLKSOURCE_HSE_DIV128
Definition stm32f1xx_hal_rcc.h:238
#define RCC_RTCCLKSOURCE_LSI
Definition stm32f1xx_hal_rcc.h:237
#define RCC_RTCCLKSOURCE_NO_CLK
Definition stm32f1xx_hal_rcc.h:235

◆ IS_RCC_SYSCLKSOURCE

#define IS_RCC_SYSCLKSOURCE ( __SOURCE__)
Value:
(((__SOURCE__) == RCC_SYSCLKSOURCE_HSI) || \
((__SOURCE__) == RCC_SYSCLKSOURCE_HSE) || \
((__SOURCE__) == RCC_SYSCLKSOURCE_PLLCLK))
#define RCC_SYSCLKSOURCE_PLLCLK
Definition stm32f1xx_hal_rcc.h:185
#define RCC_SYSCLKSOURCE_HSE
Definition stm32f1xx_hal_rcc.h:184
#define RCC_SYSCLKSOURCE_HSI
Definition stm32f1xx_hal_rcc.h:183

◆ IS_RCC_SYSCLKSOURCE_STATUS

#define IS_RCC_SYSCLKSOURCE_STATUS ( __SOURCE__)
Value:
(((__SOURCE__) == RCC_SYSCLKSOURCE_STATUS_HSI) || \
((__SOURCE__) == RCC_SYSCLKSOURCE_STATUS_HSE) || \
((__SOURCE__) == RCC_SYSCLKSOURCE_STATUS_PLLCLK))
#define RCC_SYSCLKSOURCE_STATUS_HSI
Definition stm32f1xx_hal_rcc.h:194
#define RCC_SYSCLKSOURCE_STATUS_HSE
Definition stm32f1xx_hal_rcc.h:195
#define RCC_SYSCLKSOURCE_STATUS_PLLCLK
Definition stm32f1xx_hal_rcc.h:196