STM32G474xx HAL 用户手册
定义
APB高速预分频器 (APB2)
RCC导出常量

定义

#define LL_RCC_APB2_DIV_1   RCC_CFGR_PPRE2_DIV1
#define LL_RCC_APB2_DIV_2   RCC_CFGR_PPRE2_DIV2
#define LL_RCC_APB2_DIV_4   RCC_CFGR_PPRE2_DIV4
#define LL_RCC_APB2_DIV_8   RCC_CFGR_PPRE2_DIV8
#define LL_RCC_APB2_DIV_16   RCC_CFGR_PPRE2_DIV16

定义文档

#define LL_RCC_APB2_DIV_1   RCC_CFGR_PPRE2_DIV1

HCLK不分频

定义位于文件 264stm32g4xx_ll_rcc.h 中。

#define LL_RCC_APB2_DIV_16   RCC_CFGR_PPRE2_DIV16

HCLK 16分频

定义位于文件 268stm32g4xx_ll_rcc.h 中。

#define LL_RCC_APB2_DIV_2   RCC_CFGR_PPRE2_DIV2

HCLK 2分频

定义位于文件 265stm32g4xx_ll_rcc.h 中。

#define LL_RCC_APB2_DIV_4   RCC_CFGR_PPRE2_DIV4

HCLK 4分频

定义位于文件 266stm32g4xx_ll_rcc.h 中。

#define LL_RCC_APB2_DIV_8   RCC_CFGR_PPRE2_DIV8

HCLK 8分频

定义位于文件 267stm32g4xx_ll_rcc.h 中。