Skip to content

Commit b2aaba7

Browse files
committed
fixed bug.
1 parent e1dc7be commit b2aaba7

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

machine/arm/stm32l4xx/interface/clock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void tim2_hndlr(void)
5353
}
5454
}
5555

56-
void SystemClock_Config(void)
56+
void init_clock_cfg(void)
5757
{
5858
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
5959
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};

machine/arm/stm32l4xx/interface/lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void init_hal(void) {
3131

3232
enable_faults();
3333

34-
SystemClock_Config();
34+
init_clock_cfg();
3535
init_systick();
3636
}
3737

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
#pragma once
1+
#pragma once
2+
3+
void init_clock_cfg(void);

0 commit comments

Comments
 (0)