Skip to content

Commit

Permalink
fixed printing
Browse files Browse the repository at this point in the history
  • Loading branch information
naichenzhao committed Dec 7, 2023
1 parent bcbbf43 commit 48be057
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/platform/lf_STM32f4_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ static uint32_t _lf_time_us_high = 0;
#define COMBINE_HI_LO(hi, lo) ((((uint64_t)hi) << 32) | ((uint64_t)lo))


void lf_SystemClock_Config();
void Error_Handler();

// + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +
// | Code for timer functions
Expand All @@ -37,7 +39,7 @@ static uint32_t _lf_time_us_high = 0;
void _lf_initialize_clock(void) {
// Standard initializations from generated code
HAL_Init();
SystemClock_Config();
lf_SystemClock_Config();

// Configure TIM5 as our 32-bit clock timer
__HAL_RCC_TIM5_CLK_ENABLE(); // initialize counter
Expand Down Expand Up @@ -204,7 +206,7 @@ int test_func(void) {
// + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +
// | Other functions I found -> taken from the generated main.c
// + -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +
void SystemClock_Config(void) {
void lf_SystemClock_Config(void) {
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};

Expand Down

0 comments on commit 48be057

Please sign in to comment.