Skip to content

Commit 6901649

Browse files
flowergrassdpgeorge
authored andcommitted
stmhal: Declare and initialise PrescTables for F7 MCUs.
1 parent 44cb2ff commit 6901649

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

stmhal/system_stm32.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ void __fatal_error(const char *msg);
114114
#define CONFIG_RCC_CR_2ND (RCC_CR_HSEON || RCC_CR_CSSON || RCC_CR_PLLON)
115115
#define CONFIG_RCC_PLLCFGR (0x24003010)
116116

117+
#if defined(MCU_SERIES_F7)
118+
const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
119+
const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};
120+
#endif
121+
117122
#elif defined(MCU_SERIES_L4)
118123

119124
#define CONFIG_RCC_CR_1ST (RCC_CR_MSION)

0 commit comments

Comments
 (0)