From 66b57f2a513a6e319910533afe489b12f5925339 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Sun, 13 Oct 2019 20:27:37 +0200 Subject: [PATCH] boards/stm32: add 54MHz and 108MHz divtable entries --- boards/common/stm32/include/cfg_spi_divtable.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/common/stm32/include/cfg_spi_divtable.h b/boards/common/stm32/include/cfg_spi_divtable.h index 4d5951cd00..eecf722900 100644 --- a/boards/common/stm32/include/cfg_spi_divtable.h +++ b/boards/common/stm32/include/cfg_spi_divtable.h @@ -237,6 +237,8 @@ static const uint8_t spi_divtable[2][5] = { CFG_SPIDIV_96 #elif (CLOCK_APB1 == 100000000) CFG_SPIDIV_100 +#elif (CLOCK_APB1 == 108000000) + CFG_SPIDIV_108 #else #error "CFG_SPI_DIVTABLE: no prescalers for selected APB1 bus clock defined" #endif @@ -259,6 +261,8 @@ static const uint8_t spi_divtable[2][5] = { CFG_SPIDIV_48 #elif (CLOCK_APB2 == 50000000) CFG_SPIDIV_50 +#elif (CLOCK_APB2 == 54000000) + CFG_SPIDIV_54 #elif (CLOCK_APB2 == 72000000) CFG_SPIDIV_72 #elif (CLOCK_APB2 == 60000000)