Skip to content

Commit a7ae10d

Browse files
committed
update
1 parent 5bf7918 commit a7ae10d

45 files changed

Lines changed: 4232 additions & 90945 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

10 KB
Binary file not shown.

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RUN apt-get -y install openssh-server cmake rsync gdb-multiarch build-essential
88
# used for remote non-devcontainer use ex: (https://blog.jetbrains.com/clion/2020/01/using-docker-with-clion/) [also on vscode: https://code.visualstudio.com/remote/advancedcontainers/develop-remote-host]
99
RUN useradd -m rusefi && yes password | passwd rusefi
1010

11-
CMD service ssh start && /bin/bash
11+
CMD service ssh start && /bin/bash

.devcontainer/devcontainer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// "features": {},
1010
// Use 'forwardPorts' to make a list of ports inside the container available locally.
1111
"forwardPorts": [
12-
2222, // ssh on container
12+
"2222:22", // ssh on container
1313
29002 // simulator
1414
],
1515
// Use 'postCreateCommand' to run commands after the container is created.
@@ -38,7 +38,10 @@
3838
}
3939
}
4040
}
41-
}
41+
},
4242
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
4343
// "remoteUser": "root"
44+
"mounts": [
45+
"source=${env:HOME}/.ssh,target=/root/.ssh,type=bind"
46+
]
4447
}

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

board.mk

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp \
2-
$(BOARD_DIR)/firmware/pinouts.cpp \
1+
include $(BOARD_DIR)/firmware/firmware.mk
32

43

54
BOARDINC += $(BOARD_DIR)/generated/controllers/generated
65

76
# defines SHORT_BOARD_NAME
87
include $(BOARD_DIR)/meta-info.env
98

10-
# reduce memory usage monitoring
11-
DDEFS += -DRAM_UNUSED_SIZE=100
9+
# this would save some flash while being unable to update WBO controller firmware
10+
DDEFS += -DEFI_WIDEBAND_FIRMWARE_UPDATE=FALSE
1211

13-
# assign critical LED to a non-existent pin
14-
DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::I15
15-
16-
17-
# we do not have much Lua RAM, let's drop some fancy functions
18-
DDEFS += -DWITH_LUA_CONSUMPTION=FALSE
19-
DDEFS += -DWITH_LUA_PID=FALSE
20-
DDEFS += -DWITH_LUA_STOP_ENGINE=FALSE
12+
# assign critical LED to a non-existent pin if you do not have it on your board
13+
# good old PD14 is still the default value
14+
# DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::I15

board_commands.ini

Lines changed: 0 additions & 7 deletions
This file was deleted.

board_configuration.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "pch.h"
2+
#include "board_overrides.h"
23

34
Gpio getCommsLedPin() {
45
return Gpio::Unassigned;
@@ -13,12 +14,12 @@ Gpio getWarningLedPin() {
1314
}
1415

1516
// board-specific configuration setup
16-
void setBoardDefaultConfiguration() {
17+
static void customBoardDefaultConfiguration() {
1718
// engineConfiguration->injectionPins[0] = Gpio::F13;
1819
// engineConfiguration->ignitionPins[0] = Gpio::E15;
1920

20-
engineConfiguration->triggerInputPins[0] = Gpio::D3;
21-
engineConfiguration->triggerInputPins[1] = Gpio::Unassigned;
21+
// engineConfiguration->triggerInputPins[0] = Gpio::B1;
22+
// engineConfiguration->triggerInputPins[1] = Gpio::Unassigned;
2223

2324
// engineConfiguration->map.sensor.hwChannel = EFI_ADC_3;
2425

@@ -28,12 +29,12 @@ void setBoardDefaultConfiguration() {
2829

2930

3031
// 5.6k high side/10k low side = 1.56 ratio divider
31-
engineConfiguration->analogInputDividerCoefficient = 1.47f;
32+
// engineConfiguration->analogInputDividerCoefficient = 1.56f;
3233

3334
// 6.34k high side/ 1k low side
3435
// engineConfiguration->vbattDividerCoeff = (6.34 + 1) / 1;
3536

36-
engineConfiguration->adcVcc = 3.3f;
37+
// engineConfiguration->adcVcc = 3.3f;
3738

3839
// engineConfiguration->clt.config.bias_resistor = 2490;
3940
// engineConfiguration->iat.config.bias_resistor = 2490;
@@ -42,3 +43,7 @@ void setBoardDefaultConfiguration() {
4243
// Battery sense on PA0
4344
// engineConfiguration->vbattAdcChannel = EFI_ADC_0;
4445
}
46+
47+
void setup_custom_board_overrides() {
48+
custom_board_DefaultConfiguration = customBoardDefaultConfiguration;
49+
}

board_popular_vehicles.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//DO NOT EDIT MANUALLY, let automation work hard.
2+
3+
// auto-generated by PinoutLogic.java based on ../../../connectors/custom_firmware.yaml
4+
#pragma once
5+

0 commit comments

Comments
 (0)