Skip to content

Commit

Permalink
stm32/mboot: Remove custom HAL_RCC_GetHCLKFreq and use HAL provided one.
Browse files Browse the repository at this point in the history
So that a board can access other HAL_RCC functions if it needs them (this
was not possible previously by just adding hal_rcc.c to the src list for a
board because it would clash with the custom HAL_RCC_GetHCLKFreq function).

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Jan 20, 2022
1 parent 037b2c7 commit 608d421
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions ports/stm32/mboot/Makefile
Expand Up @@ -161,6 +161,7 @@ SRC_HAL += $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_,\
hal_flash_ex.c \
hal_pcd.c \
hal_pcd_ex.c \
hal_rcc.c \
ll_usb.c \
)

Expand Down
5 changes: 0 additions & 5 deletions ports/stm32/mboot/main.c
Expand Up @@ -326,11 +326,6 @@ void SystemClock_Config(void) {

#endif

// Needed by HAL_PCD_IRQHandler
uint32_t HAL_RCC_GetHCLKFreq(void) {
return SystemCoreClock;
}

/******************************************************************************/
// GPIO

Expand Down

0 comments on commit 608d421

Please sign in to comment.