only:uaefi121

This commit is contained in:
rusefi 2024-06-12 18:06:26 -04:00
parent 81469df45f
commit d355e11b74
6 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# Combine the related files for a specific platform and MCU.
# Target ECU board design
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
#no mux on mm100
# Add them all together
DDEFS += -DFIRMWARE_ID=\"uaefi121\" $(VAR_DEF_ENGINE_TYPE)
DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE
# EGT chip
DDEFS += -DEFI_MAX_31855=TRUE
ONBOARD_MEMS_TYPE=LIS2DH12
include $(BOARDS_DIR)/hellen/hellen-common100.mk
DDEFS += $(PRIMARY_COMMUNICATION_PORT_USART2)

View File

@ -0,0 +1,27 @@
/**
* See https://rusefi.com/s/uaefi121
*
* @author Andrey Belomutskiy, (c) 2012-2023
*/
#include "pch.h"
#include "defaults.h"
#include "hellen_meta.h"
#include "hellen_leds_100.cpp"
void setBoardConfigOverrides() {
setHellenMegaEnPin();
setHellenVbatt();
hellenMegaSdWithAccelerometer();
setDefaultHellenAtPullUps();
}
void setBoardDefaultConfiguration() {
}
int getBoardMetaDcOutputsCount() {
return 2;
}

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
cd ../../../.. && bash bin/compile.sh config/boards/hellen/uaefi/meta-info.env

View File

@ -0,0 +1,12 @@
#pragma once
// Knock is on ADC3
#define KNOCK_ADC ADCD3
// knock 1 - pin PA2
#define KNOCK_ADC_CH1 ADC_CHANNEL_IN2
#define KNOCK_PIN_CH1 Gpio::A2
// Sample rate & time - depends on the exact MCU
#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84
#define KNOCK_SAMPLE_RATE (STM32_PCLK2 / (4 * (84 + 12)))

View File

@ -0,0 +1,2 @@
SHORT_BOARD_NAME=uaefi121
PROJECT_CPU=ARCH_STM32F4

View File

@ -0,0 +1,28 @@
#define MAIN_HELP_URL "https://rusefi.com/s/uaefi121"
#define ts_show_vbatt false
#define ts_show_clt_iat_pullup false
#define ts_show_egt false
! users would need an option to un-select in order to use H-bridges for stepper idle
#define ts_show_etb_pins true
#define ts_show_analog_divider false
#define ts_show_spi false
#define ts_show_can_pins false
#define ts_show_tunerstudio_port true
#define ts_show_can2 false
#define ts_show_software_knock true
#define ts_show_hardware_simulator false
#define ts_show_vr_threshold_all true
#define ts_show_vr_threshold_pins false
#define ts_show_vr_threshold_2 false
#define ts_show_tcu true
#define ts_show_gdi true