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
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
2022-02-06 14:23:07 -08:00
DDEFS += -DSTM32_I2C_USE_I2C3= 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