Skip to content

Commit 48be057

Browse files
committed
fixed printing
1 parent bcbbf43 commit 48be057

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/platform/lf_STM32f4_support.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ static uint32_t _lf_time_us_high = 0;
2828
#define COMBINE_HI_LO(hi, lo) ((((uint64_t)hi) << 32) | ((uint64_t)lo))
2929

3030

31+
void lf_SystemClock_Config();
32+
void Error_Handler();
3133

3234
// + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +
3335
// | Code for timer functions
@@ -37,7 +39,7 @@ static uint32_t _lf_time_us_high = 0;
3739
void _lf_initialize_clock(void) {
3840
// Standard initializations from generated code
3941
HAL_Init();
40-
SystemClock_Config();
42+
lf_SystemClock_Config();
4143

4244
// Configure TIM5 as our 32-bit clock timer
4345
__HAL_RCC_TIM5_CLK_ENABLE(); // initialize counter
@@ -204,7 +206,7 @@ int test_func(void) {
204206
// + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +
205207
// | Other functions I found -> taken from the generated main.c
206208
// + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +
207-
void SystemClock_Config(void) {
209+
void lf_SystemClock_Config(void) {
208210
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
209211
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
210212

0 commit comments

Comments
 (0)