Skip to content

Commit fdbc22e

Browse files
committed
stmhal: Disable redundant SystemCoreClockUpdate function.
1 parent 280e720 commit fdbc22e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

stmhal/system_stm32f4xx.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ void __fatal_error(const char *msg);
116116
variable is updated automatically.
117117
*/
118118
uint32_t SystemCoreClock = 16000000;
119-
__I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
120119

121120
/**
122121
* @}
@@ -210,6 +209,10 @@ void SystemInit(void)
210209
* @param None
211210
* @retval None
212211
*/
212+
#if 0
213+
// dpgeorge: I think this function is obsolete now with the new HAL library.
214+
215+
__I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
213216
void SystemCoreClockUpdate(void)
214217
{
215218
uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2;
@@ -257,6 +260,7 @@ void SystemCoreClockUpdate(void)
257260
/* HCLK frequency */
258261
SystemCoreClock >>= tmp;
259262
}
263+
#endif
260264

261265
/**
262266
* @brief System Clock Configuration

0 commit comments

Comments
 (0)