boards/stm32gx: use correct clock base for CLOCK_APBx defines

This commit is contained in:
Alexandre Abadie 2020-09-25 09:07:08 +02:00
parent 2f053c90bd
commit d0dd196c30
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -120,11 +120,11 @@ extern "C" {
#ifndef CONFIG_CLOCK_APB1_DIV #ifndef CONFIG_CLOCK_APB1_DIV
#define CONFIG_CLOCK_APB1_DIV (1) #define CONFIG_CLOCK_APB1_DIV (1)
#endif #endif
#define CLOCK_APB1 (CLOCK_CORECLOCK / CONFIG_CLOCK_APB1_DIV) /* max: 170MHz */ #define CLOCK_APB1 (CLOCK_AHB / CONFIG_CLOCK_APB1_DIV) /* max: 170MHz */
#ifndef CONFIG_CLOCK_APB2_DIV #ifndef CONFIG_CLOCK_APB2_DIV
#define CONFIG_CLOCK_APB2_DIV (1) #define CONFIG_CLOCK_APB2_DIV (1)
#endif #endif
#define CLOCK_APB2 (CLOCK_CORECLOCK / CONFIG_CLOCK_APB2_DIV) /* max: 170MHz */ #define CLOCK_APB2 (CLOCK_AHB / CONFIG_CLOCK_APB2_DIV) /* max: 170MHz */
#ifdef __cplusplus #ifdef __cplusplus
} }