Merge pull request #16881 from bissell-homecare-inc/add_g0_apbmul

added APB12 bus multiplier entry for applicable cpus
This commit is contained in:
Alexandre Abadie 2021-09-24 16:25:07 +02:00 committed by GitHub
commit 1b83ecdd5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,18 @@
static const uint8_t apbmul[] = { static const uint8_t apbmul[] = {
#if (CLOCK_APB1 < CLOCK_CORECLOCK) #if (CLOCK_APB1 < CLOCK_CORECLOCK)
[APB1] = 2, [APB1] = 2,
#if defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32WB) || \
defined(CPU_FAM_STM32G4) || defined(CPU_FAM_STM32L5) || \
defined(CPU_FAM_STM32WL) || defined(CPU_FAM_STM32G0)
[APB12] = 2,
#endif
#else #else
[APB1] = 1, [APB1] = 1,
#if defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32WB) || \
defined(CPU_FAM_STM32G4) || defined(CPU_FAM_STM32L5) || \
defined(CPU_FAM_STM32WL) || defined(CPU_FAM_STM32G0)
[APB12] = 1,
#endif
#endif #endif
#if (CLOCK_APB2 < CLOCK_CORECLOCK) #if (CLOCK_APB2 < CLOCK_CORECLOCK)
[APB2] = 2 [APB2] = 2