Add config options for stm32f4 boards

This introduces the following configuration options to allow for easier
support for boards using the stm32f4 MCU

CLOCK_SPEED: This defines the clock speed in Hz
STM32_PLLM: This defines the PLLM parameter in the pll clock setup
STM32_PLLN: This defines the PLLN parameter in the pll clock setup
STM32_PLLP: This defines the PLLP parameter in the pll clock setup
STM32_PLLQ: This defines the PLLQ parameter in the pll clock setup
pull/572/head
Alex Lanzano 2025-05-08 16:20:06 -04:00
parent 374d6058f6
commit f9fd9fec2e
1 changed files with 28 additions and 0 deletions

View File

@ -948,3 +948,31 @@ ifneq ($(CERT_CHAIN_VERIFY),)
endif
SIGN_OPTIONS += --cert-chain $(CERT_CHAIN_FILE)
endif
# Clock Speed (Hz)
ifneq ($(CLOCK_SPEED),)
CFLAGS += -DCLOCK_SPEED=$(CLOCK_SPEED)
endif
# STM32F4 clock options
ifneq ($(STM32_PLLM),)
CFLAGS += -DSTM32_PLLM=$(STM32_PLLM)
endif
ifneq ($(STM32_PLLN),)
CFLAGS += -DSTM32_PLLN=$(STM32_PLLN)
endif
ifneq ($(STM32_PLLP),)
CFLAGS += -DSTM32_PLLP=$(STM32_PLLP)
endif
ifneq ($(STM32_PLLQ),)
CFLAGS += -DSTM32_PLLQ=$(STM32_PLLQ)
endif
# STM32 UART options
ifeq ($(USE_UART1),1)
CFLAGS += -DUSE_UART1=1
endif
ifeq ($(USE_UART3),1)
CFLAGS += -DUSE_UART3=1
endif