mirror of https://github.com/wolfSSL/wolfBoot.git
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 setuppull/572/head
parent
374d6058f6
commit
f9fd9fec2e
28
options.mk
28
options.mk
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue