2017-03-24 10:41:36 -07:00
# List of all the board related files.
2023-02-01 11:41:27 -08:00
BOARDCPPSRC = $( BOARD_DIR) /board_extra.cpp
2017-03-24 10:41:36 -07:00
2017-05-01 12:09:35 -07:00
# MCU defines
2017-05-01 12:24:19 -07:00
DDEFS += -DSTM32F407xx
2020-12-22 18:54:40 -08:00
2022-04-09 15:48:33 -07:00
i f e q ( $( VAR_DEF_ENGINE_TYPE ) , )
VAR_DEF_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE= DEFAULT_FRANKENSO
2022-02-09 17:59:55 -08:00
e n d i f
2022-02-26 19:23:49 -08:00
# here we use different names for env variable and macro name in order to reduce confusion. overall this is about Frankenso builds defining FIRMWARE_ID
i f e q ( $( FW_ID_ENV ) , )
DDEFS += -DFIRMWARE_ID= \" stm32f407vg\"
e l s e
DDEFS += -D$( FW_ID_ENV)
e n d i f
2023-01-23 07:14:52 -08:00
# See also ts_show_critical_led
DDEFS += -DFLEXIBLE_CRITICAL_LED= 1
2023-03-10 14:56:57 -08:00
# User can configure LIN/K-line interface
DDEFS += -DEFI_KLINE= TRUE
DDEFS += -DKLINE_SERIAL_DEVICE_RX= Gpio::C11 -DKLINE_SERIAL_DEVICE_TX= Gpio::C10
DDEFS += -DKLINE_SERIAL_DEVICE= SD3
2023-03-18 23:22:14 -07:00
DDEFS += -DBOARD_TLE9104_COUNT= 2
2020-12-22 18:54:40 -08:00
# We are running on Frankenso hardware!
DDEFS += -DHW_FRANKENSO= 1
2022-02-09 18:08:50 -08:00
DDEFS += $( DEFAULT_ENGINE_TYPE)
2022-02-09 16:49:41 -08:00
2023-04-23 22:31:42 -07:00
DDEFS += -DSTM32_ADC_USE_ADC3= TRUE
# todo: make knock pin software-selectable?
# todo: DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE
2023-03-01 06:19:22 -08:00
DDEFS += -DEFI_SENT_SUPPORT= TRUE
2023-02-19 11:57:21 -08:00
# TS_SECONDARY_UxART_PORT
DDEFS += -DSTM32_SERIAL_USE_USART3= TRUE
DDEFS += -DTS_SECONDARY_UxART_PORT= SD3
2022-02-06 14:23:07 -08:00
DDEFS += -DSTM32_I2C_USE_I2C3= TRUE
2022-02-05 12:57:11 -08:00
2023-04-03 08:31:07 -07:00
DDEFS += -DEFI_WS2812= TRUE
2022-02-05 12:57:11 -08:00
i f n d e f I S _ R E _ B O O T L O A D E R
DDEFS += -DHAL_USE_EEPROM= TRUE
e n d i f