File tree Expand file tree Collapse file tree
firmware/config/boards/hellen/super-uaefi Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Combine the related files for a specific platform and MCU.
22
33# Target ECU board design
4- BOARDCPPSRC = $(BOARD_DIR ) /board_configuration.cpp
5-
6-
4+ BOARDCPPSRC = $(BOARD_DIR ) /board_configuration.cpp \
5+ $(BOARD_DIR ) /../uaefi121/mega-uaefi.cpp
76
87# no mux on mm100
98
Original file line number Diff line number Diff line change 99#include " hellen_meta.h"
1010#include " board_overrides.h"
1111// #include "connectors/generated_board_pin_names.h"
12+ #include " ../uaefi121/mega-uaefi.h"
1213
1314Gpio getCommsLedPin () {
1415 return Gpio::MM100_LED3_BLUE ;
@@ -58,20 +59,6 @@ static void setupDefaultSensorInputs() {
5859 engineConfiguration->vehicleSpeedSensorInputPin = Gpio::MM100_IN_D3 ;
5960}
6061
61- static void super_uaefi_boardConfigOverrides () {
62- setHellenMegaEnPin ();
63- setHellenVbatt ();
64-
65- hellenMegaSdWithAccelerometer ();
66-
67- engineConfiguration->vrThreshold [0 ].pin = Gpio::MM100_OUT_PWM6 ;
68-
69- setHellenCan ();
70-
71- setDefaultHellenAtPullUps ();
72-
73- }
74-
7562void setUaefiDefaultETBPins () {
7663 // users would want to override those if using H-bridges for stepper idle control
7764 setupTLE9201IncludingStepper (/* PWM controlPin*/ Gpio::MM100_OUT_PWM3 , Gpio::MM100_OUT_PWM4 , Gpio::MM100_SPI2_MISO );
@@ -175,5 +162,5 @@ int getBoardMetaDcOutputsCount() {
175162
176163void setup_custom_board_overrides () {
177164 custom_board_DefaultConfiguration = super_uaefi_boardDefaultConfiguration;
178- custom_board_ConfigOverrides = super_uaefi_boardConfigOverrides ;
165+ custom_board_ConfigOverrides = setMegaUaefiBoardConfigOverrides ;
179166}
You can’t perform that action at this time.
0 commit comments