export board-specific macro for stm32 pins based on board yaml #3298
This commit is contained in:
parent
7b65642c9a
commit
186be0c777
|
@ -36,3 +36,5 @@ else ifeq ($(PROJECT_CPU),ARCH_STM32F4)
|
|||
else
|
||||
$(error Unsupported PROJECT_CPU [$(PROJECT_CPU)])
|
||||
endif
|
||||
|
||||
DDEFS += -DHW_HELLEN_4CHAN=1
|
||||
|
|
|
@ -29,3 +29,4 @@ $(error Unsupported PROJECT_CPU [$(PROJECT_CPU)])
|
|||
endif
|
||||
|
||||
DDEFS += -DSHORT_BOARD_NAME=alphax-8chan -DSTATIC_BOARD_ID=STATIC_BOARD_ID_ALPHAX_8CHAN
|
||||
DDEFS += -DHW_HELLEN_8CHAN=1
|
||||
|
|
|
@ -19,3 +19,5 @@ include $(BOARDS_DIR)/hellen/hellen-common144.mk
|
|||
DDEFS += $(PRIMARY_COMMUNICATION_PORT_USART2)
|
||||
|
||||
DDEFS += -DSHORT_BOARD_NAME=hellen-nb1 -DSTATIC_BOARD_ID=STATIC_BOARD_ID_HELLEN_NB1
|
||||
|
||||
DDEFS += -DHW_HELLEN_NB1=1
|
||||
|
|
|
@ -18,3 +18,4 @@ DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE
|
|||
DDEFS += -DSHORT_BOARD_NAME=hellen72 -DSTATIC_BOARD_ID=STATIC_BOARD_ID_HELLEN_72
|
||||
|
||||
include $(BOARDS_DIR)/hellen/hellen-common176.mk
|
||||
DDEFS += -DHW_HELLEN_NB2=1
|
||||
|
|
|
@ -831,22 +831,37 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e
|
|||
break;
|
||||
#endif
|
||||
|
||||
#if HW_HELLEN
|
||||
#if HW_HELLEN_4CHAN
|
||||
case engine_type_e::HELLEN_4CHAN_STIM_QC:
|
||||
alphax4chanStimQc();
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if HW_HELLEN_8CHAN
|
||||
case engine_type_e::ALPHAX_8CHAN_SBC:
|
||||
set8chanSbc();
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if HW_HELLEN_NB1
|
||||
case engine_type_e::HELLEN_NB1:
|
||||
setHellenNB1();
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if HW_HELLEN_NB2
|
||||
case engine_type_e::HELLEN_NB2:
|
||||
setMiataNB2_Hellen72();
|
||||
break;
|
||||
case engine_type_e::HELLEN_NB2_36:
|
||||
setMiataNB2_Hellen72_36();
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if HW_HELLEN
|
||||
case engine_type_e::HELLEN_NA8_96:
|
||||
setHellenMiata96();
|
||||
break;
|
||||
case engine_type_e::HELLEN_NB1:
|
||||
setHellenNB1();
|
||||
break;
|
||||
case engine_type_e::HELLEN_121_VAG_5_CYL:
|
||||
setHellen121Vag_5_cyl();
|
||||
break;
|
||||
|
@ -868,9 +883,6 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e
|
|||
case engine_type_e::HELLEN_NA94:
|
||||
setHellenNA94();
|
||||
break;
|
||||
case engine_type_e::ALPHAX_8CHAN_SBC:
|
||||
set8chanSbc();
|
||||
break;
|
||||
case engine_type_e::HELLEN_HONDA_BCM:
|
||||
setHondaCivicBcm();
|
||||
break;
|
||||
|
|
|
@ -55,6 +55,7 @@ USE_OPT += -DEFI_UNIT_TEST=1 -DEFI_PROD_CODE=0 -DEFI_SIMULATOR=0
|
|||
|
||||
# Pretend we are all different hardware so that all canned engine configs are included
|
||||
USE_OPT += -DHW_MICRO_RUSEFI=1 -DHW_PROTEUS=1 -DHW_FRANKENSO=1 -DHW_HELLEN=1 -DHW_HELLEN_NISSAN=1
|
||||
USE_OPT += -DHW_HELLEN_NB1=1 -DHW_HELLEN_NB2=1
|
||||
|
||||
DDEFS += -DSHORT_BOARD_NAME=f407-discovery
|
||||
|
||||
|
|
Loading…
Reference in New Issue