This commit is contained in:
parent
9e179d6a25
commit
dffb4ae4c2
|
@ -4,8 +4,8 @@
|
||||||
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp
|
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp
|
||||||
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
|
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
|
||||||
|
|
||||||
# Turn off stuff proteus doesn't have/need
|
# Turn off stuff we don't have/need
|
||||||
DDEFS += -DEFI_MAX_31855=FALSE -DBOARD_L9779_COUNT=0 -DBOARD_TLE8888_COUNT=0
|
DDEFS += -DBOARD_TLE8888_COUNT=0
|
||||||
|
|
||||||
# Add them all together
|
# Add them all together
|
||||||
DDEFS += -DFIRMWARE_ID=\"AlphaX-4chan\"
|
DDEFS += -DFIRMWARE_ID=\"AlphaX-4chan\"
|
||||||
|
@ -20,7 +20,7 @@ include $(BOARDS_DIR)/hellen/hellen-common144.mk
|
||||||
|
|
||||||
ifeq ($(PROJECT_CPU),ARCH_STM32F7)
|
ifeq ($(PROJECT_CPU),ARCH_STM32F7)
|
||||||
DDEFS += -DSHORT_BOARD_NAME=alphax-4chan-f7
|
DDEFS += -DSHORT_BOARD_NAME=alphax-4chan-f7
|
||||||
# TODO: why do I strugle to fit into flash? compare with Proteus
|
# TODO: why do I struggle to fit into flash? compare with Proteus
|
||||||
DDEFS += -DCH_DBG_ENABLE_ASSERTS=FALSE
|
DDEFS += -DCH_DBG_ENABLE_ASSERTS=FALSE
|
||||||
else ifeq ($(PROJECT_CPU),ARCH_STM32F4)
|
else ifeq ($(PROJECT_CPU),ARCH_STM32F4)
|
||||||
DDEFS += -DSHORT_BOARD_NAME=alphax-4chan
|
DDEFS += -DSHORT_BOARD_NAME=alphax-4chan
|
||||||
|
|
|
@ -15,9 +15,17 @@ DDEFS += -DADC_MUX_PIN=Gpio::B3
|
||||||
|
|
||||||
include $(BOARDS_DIR)/hellen/hellen-common144.mk
|
include $(BOARDS_DIR)/hellen/hellen-common144.mk
|
||||||
|
|
||||||
# serial ports only on F4
|
# Turn off stuff we don't have/need
|
||||||
ifeq ($(PROJECT_CPU),ARCH_STM32F4)
|
DDEFS += -DBOARD_TLE8888_COUNT=0
|
||||||
|
|
||||||
|
ifeq ($(PROJECT_CPU),ARCH_STM32F7)
|
||||||
|
# TODO: why do I struggle to fit into flash? compare with Proteus
|
||||||
|
DDEFS += -DCH_DBG_ENABLE_ASSERTS=FALSE
|
||||||
|
else ifeq ($(PROJECT_CPU),ARCH_STM32F4)
|
||||||
|
# serial ports only on F4
|
||||||
DDEFS += $(PRIMARY_COMMUNICATION_PORT_USART2)
|
DDEFS += $(PRIMARY_COMMUNICATION_PORT_USART2)
|
||||||
|
else
|
||||||
|
$(error Unsupported PROJECT_CPU [$(PROJECT_CPU)])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DDEFS += -DSHORT_BOARD_NAME=alphax-8chan
|
DDEFS += -DSHORT_BOARD_NAME=alphax-8chan
|
||||||
|
|
|
@ -26,6 +26,9 @@
|
||||||
#undef EFI_MAX_31855
|
#undef EFI_MAX_31855
|
||||||
#define EFI_MAX_31855 FALSE
|
#define EFI_MAX_31855 FALSE
|
||||||
|
|
||||||
|
#undef BOARD_L9779_COUNT
|
||||||
|
#define BOARD_L9779_COUNT FALSE
|
||||||
|
|
||||||
#undef EFI_MCP_3208
|
#undef EFI_MCP_3208
|
||||||
#define EFI_MCP_3208 FALSE
|
#define EFI_MCP_3208 FALSE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue