Skip to content

Commit b71f887

Browse files
fprfpistm
fpr
authored andcommitted
Use F_CPU defined in board.txt
Signed-off-by: fpr <[email protected]>
1 parent 129c663 commit b71f887

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

system/STM32F1xx/system_stm32f1xx.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,7 @@
133133
/*******************************************************************************
134134
* Clock Definitions
135135
*******************************************************************************/
136-
#if defined(STM32F100xB) ||defined(STM32F100xE)
137-
uint32_t SystemCoreClock = 24000000; /*!< System Clock Frequency (Core Clock) */
138-
#else /*!< HSI Selected as System Clock source */
139-
uint32_t SystemCoreClock = 72000000; /*!< System Clock Frequency (Core Clock) */
140-
#endif
136+
uint32_t SystemCoreClock = F_CPU; /*!< System Clock Frequency (Core Clock) */
141137

142138
const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
143139
const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};

0 commit comments

Comments
 (0)