STM32G474xx HAL用户手册
定义
外设ADC获取时钟源
RCC导出常量

定义

#define LL_RCC_ADC12_CLKSOURCE   (((uint32_t)RCC_OFFSET_CCIPR << 24U) | ((uint32_t)RCC_CCIPR_ADC12SEL_Pos << 16U) | (RCC_CCIPR_ADC12SEL >> RCC_CCIPR_ADC12SEL_Pos))
#define LL_RCC_ADC345_CLKSOURCE   (((uint32_t)RCC_OFFSET_CCIPR << 24U) | ((uint32_t)RCC_CCIPR_ADC345SEL_Pos << 16U) | (RCC_CCIPR_ADC345SEL >> RCC_CCIPR_ADC345SEL_Pos))

Define Documentation

#define LL_RCC_ADC12_CLKSOURCE   (((uint32_t)RCC_OFFSET_CCIPR << 24U) | ((uint32_t)RCC_CCIPR_ADC12SEL_Pos << 16U) | (RCC_CCIPR_ADC12SEL >> RCC_CCIPR_ADC12SEL_Pos))

ADC12时钟源选择

定义于第 574 行,文件 stm32g4xx_ll_rcc.h

参考 LL_RCC_GetADCClockFreq()

#define LL_RCC_ADC345_CLKSOURCE   (((uint32_t)RCC_OFFSET_CCIPR << 24U) | ((uint32_t)RCC_CCIPR_ADC345SEL_Pos << 16U) | (RCC_CCIPR_ADC345SEL >> RCC_CCIPR_ADC345SEL_Pos))

ADC345时钟源选择

定义于第 576 行,文件 stm32g4xx_ll_rcc.h