Skip to content

Commit 48e0c24

Browse files
committed
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
1 parent 60b208e commit 48e0c24

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

options.mk

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,3 +909,31 @@ ifeq ($(WOLFHSM_CLIENT),1)
909909
CFLAGS += -DWOLFBOOT_USE_WOLFHSM_PUBKEY_ID
910910
endif
911911
endif
912+
913+
# Clock Speed (Hz)
914+
ifneq ($(CLOCK_SPEED),)
915+
CFLAGS += -DCLOCK_SPEED=$(CLOCK_SPEED)
916+
endif
917+
918+
# STM32F4 clock options
919+
ifneq ($(STM32_PLLM),)
920+
CFLAGS += -DSTM32_PLLM=$(STM32_PLLM)
921+
endif
922+
ifneq ($(STM32_PLLN),)
923+
CFLAGS += -DSTM32_PLLN=$(STM32_PLLN)
924+
endif
925+
ifneq ($(STM32_PLLP),)
926+
CFLAGS += -DSTM32_PLLP=$(STM32_PLLP)
927+
endif
928+
ifneq ($(STM32_PLLQ),)
929+
CFLAGS += -DSTM32_PLLQ=$(STM32_PLLQ)
930+
endif
931+
932+
# STM32 UART options
933+
ifeq ($(USE_UART1),1)
934+
CFLAGS += -DUSE_UART1=1
935+
endif
936+
937+
ifeq ($(USE_UART3),1)
938+
CFLAGS += -DUSE_UART3=1
939+
endif

0 commit comments

Comments
 (0)