Merge pull request #16881 from bissell-homecare-inc/add_g0_apbmul
added APB12 bus multiplier entry for applicable cpus
This commit is contained in:
commit
1b83ecdd5d
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user