diff --git a/.github/workflows/build-firmware.yaml b/.github/workflows/build-firmware.yaml index f626fce713..c6bb5656f5 100644 --- a/.github/workflows/build-firmware.yaml +++ b/.github/workflows/build-firmware.yaml @@ -15,7 +15,7 @@ jobs: # # see also gen_config where we have a similar list for all boards! # - build-target: [hellen72, hellenNA6, hellen128, hellen121vag, hellen121nissan, cypress, frankenso_na6, kinetis, mre_f4, mre_f4_recovery, mre_f4_hardware_QC_special_build, mre_f7, prometheus_405, prometheus_469, proteus_f4, proteus_f4_hardware_QC_special_build, proteus_f7, proteus_f7_hardware_QC_special_build, proteus_h7, proteus_legacy, stm32f767_nucleo, stm32h743_nucleo, subaru_eg33_f7] + build-target: [hellen72, hellenNA6, hellen128, hellen121vag, hellen121nissan, cypress, frankenso_na6, kinetis, mre_f4, mre_f4_recovery, mre_f4_hardware_QC_special_build, mre_f7, prometheus_405, prometheus_469, proteus_f4, proteus_f4_hardware_QC_special_build, proteus_f7, proteus_f7_hardware_QC_special_build, proteus_h7, proteus_legacy, stm32f767_nucleo, stm32h743_nucleo, subaru_eg33_f7, atlas] include: # Board configurations @@ -115,6 +115,10 @@ jobs: folder: subaru_eg33 ini-file: rusefi_subaru_eg33_f7.ini + - build-target: atlas + folder: atlas + ini-file: rusefi_atlas.ini + steps: - uses: actions/checkout@v1 with: diff --git a/firmware/config/boards/atlas/board.mk b/firmware/config/boards/atlas/board.mk new file mode 100644 index 0000000000..fd1fccb236 --- /dev/null +++ b/firmware/config/boards/atlas/board.mk @@ -0,0 +1,21 @@ +# List of all the board related files. +BOARDCPPSRC = $(PROJECT_DIR)/config/boards/atlas/board_configuration.cpp + +BOARDINC = $(PROJECT_DIR)/config/boards/atlas + +#DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOE_3 +DDEFS += -DFIRMWARE_ID=\"atlas\" -DDEFAULT_ENGINE_TYPE=MINIMAL_PINS + +# This stuff doesn't work on H7 yet +# DDEFS += -DSTM32_ADC_USE_ADC3=TRUE +# DEFS += -DEFI_SOFTWARE_KNOCK=TRUE + +# disable hardware serial ports on H7 +DDEFS += -DTS_NO_PRIMARY -DTS_NO_SECONDARY + +# We are running on Proteus hardware! +DDEFS += -DHW_ATLAS=1 + +# Shared variables +ALLCPPSRC += $(BOARDCPPSRC) +ALLINC += $(BOARDINC) diff --git a/firmware/config/boards/atlas/board_configuration.cpp b/firmware/config/boards/atlas/board_configuration.cpp new file mode 100644 index 0000000000..079d8be00b --- /dev/null +++ b/firmware/config/boards/atlas/board_configuration.cpp @@ -0,0 +1,10 @@ +#include "pch.h" + +void setPinConfigurationOverrides(void) { +} + +void setSerialConfigurationOverrides(void) { +} + +void setSdCardConfigurationOverrides(void) { +} diff --git a/firmware/config/boards/atlas/compile_atlas.sh b/firmware/config/boards/atlas/compile_atlas.sh new file mode 100644 index 0000000000..707549e846 --- /dev/null +++ b/firmware/config/boards/atlas/compile_atlas.sh @@ -0,0 +1,5 @@ +#!/bin/bash +export PROJECT_BOARD=atlas +export PROJECT_CPU = ARCH_STM32H7 + +bash ../common_make.sh diff --git a/firmware/config/boards/atlas/prepend.txt b/firmware/config/boards/atlas/prepend.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/firmware/gen_config.sh b/firmware/gen_config.sh index ada56f295e..d12982702c 100755 --- a/firmware/gen_config.sh +++ b/firmware/gen_config.sh @@ -16,7 +16,7 @@ bash gen_config_default.sh # firmware\tunerstudio\generated and firmware\controllers\generated folders # maybe one day we will automate but not yet # -for BOARD in "f429-discovery f429-discovery" "hellen/hellen128 hellen128 rusefi_hellen128mercedes.ini" "hellen/hellen121vag hellen121vag" "hellen/hellen121nissan hellen121nissan" "hellen/hellen72 hellen72" "hellen/hellen64_miataNA6_94 hellenNA6" "microrusefi mre_f7" "microrusefi mre_f4" "frankenso frankenso_na6" "prometheus prometheus_469" "prometheus prometheus_405" "proteus proteus_f7" "proteus proteus_f4"; do +for BOARD in "f429-discovery f429-discovery" "hellen/hellen128 hellen128 rusefi_hellen128mercedes.ini" "hellen/hellen121vag hellen121vag" "hellen/hellen121nissan hellen121nissan" "hellen/hellen72 hellen72" "hellen/hellen64_miataNA6_94 hellenNA6" "microrusefi mre_f7" "microrusefi mre_f4" "frankenso frankenso_na6" "prometheus prometheus_469" "prometheus prometheus_405" "proteus proteus_f7" "proteus proteus_f4" "atlas atlas"; do BOARD_NAME=$(echo "$BOARD" | cut -d " " -f 1) BOARD_SHORT_NAME=$(echo "$BOARD" | cut -d " " -f 2) INI=$(echo "$BOARD" | cut -d " " -f 3)