summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/system_stm32.c
diff options
context:
space:
mode:
authorRami Ali <flowergrass@users.noreply.github.com>2016-12-06 11:09:33 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-07 17:31:09 +1100
commit6901649f544587ee0ec160eeaedb4650979d5492 (patch)
treee121aaa89c5e2abebdc7eaf90f2c9f7f38a44e38 /stmhal/system_stm32.c
parent44cb2ff7ab99edf91c95b9ef3d9fe3e119d71cf8 (diff)
downloadmicropython-6901649f544587ee0ec160eeaedb4650979d5492.tar.gz
micropython-6901649f544587ee0ec160eeaedb4650979d5492.zip
stmhal: Declare and initialise PrescTables for F7 MCUs.
Diffstat (limited to 'stmhal/system_stm32.c')
-rw-r--r--stmhal/system_stm32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stmhal/system_stm32.c b/stmhal/system_stm32.c
index 96caa7d36d..266b8a92a5 100644
--- a/stmhal/system_stm32.c
+++ b/stmhal/system_stm32.c
@@ -114,6 +114,11 @@ void __fatal_error(const char *msg);
#define CONFIG_RCC_CR_2ND (RCC_CR_HSEON || RCC_CR_CSSON || RCC_CR_PLLON)
#define CONFIG_RCC_PLLCFGR (0x24003010)
+#if defined(MCU_SERIES_F7)
+const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
+const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};
+#endif
+
#elif defined(MCU_SERIES_L4)
#define CONFIG_RCC_CR_1ST (RCC_CR_MSION)