summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/system_stm32f4xx.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-15 14:45:51 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-15 14:45:51 +0000
commitfdbc22e4d27b9d1c686647c9c67a32206f7bc83a (patch)
treea69b5772b6e5ca141c6b94717bb71229c1518da4 /stmhal/system_stm32f4xx.c
parent280e7208d8b8bc7abc8d5d6a49abc0977004ee56 (diff)
downloadmicropython-fdbc22e4d27b9d1c686647c9c67a32206f7bc83a.tar.gz
micropython-fdbc22e4d27b9d1c686647c9c67a32206f7bc83a.zip
stmhal: Disable redundant SystemCoreClockUpdate function.
Diffstat (limited to 'stmhal/system_stm32f4xx.c')
-rw-r--r--stmhal/system_stm32f4xx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/stmhal/system_stm32f4xx.c b/stmhal/system_stm32f4xx.c
index f5a97c0ef3..4a35a8bd81 100644
--- a/stmhal/system_stm32f4xx.c
+++ b/stmhal/system_stm32f4xx.c
@@ -116,7 +116,6 @@ void __fatal_error(const char *msg);
variable is updated automatically.
*/
uint32_t SystemCoreClock = 16000000;
- __I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
/**
* @}
@@ -210,6 +209,10 @@ void SystemInit(void)
* @param None
* @retval None
*/
+#if 0
+// dpgeorge: I think this function is obsolete now with the new HAL library.
+
+__I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
void SystemCoreClockUpdate(void)
{
uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2;
@@ -257,6 +260,7 @@ void SystemCoreClockUpdate(void)
/* HCLK frequency */
SystemCoreClock >>= tmp;
}
+#endif
/**
* @brief System Clock Configuration