refactoring: reducing complexity? handling trigger same as everything else?

only:uaefi
This commit is contained in:
rusefillc 2025-01-02 22:15:40 -05:00
parent ce32b2ff48
commit c8ed6374b3
4 changed files with 6 additions and 8 deletions

View File

@ -1,5 +1,4 @@
! technically that's PWM_PHASE_MAX_WAVE_PER_PWM * 2
#define HW_EVENT_TYPES 4
struct_no_prefix trigger_central_s

View File

@ -161,9 +161,7 @@ Usages:
- name: trigger_central
java: TriggerCentral.java
folder: controllers/trigger
withCDefines: true
# something special about 'error: "ts_show_vbatt" redefined'' why is trigger.h special?
# prepend: integration/rusefi_config.txt
prepend: integration/rusefi_config_shared.txt
constexpr: "engine->triggerCentral"
conditional_compilation: "EFI_SHAFT_POSITION_INPUT"

View File

@ -21,6 +21,9 @@
#define PACK_MULT_FUEL_FLOW 200
#define PACK_MULT_VSS 100
! technically that's PWM_PHASE_MAX_WAVE_PER_PWM * 2
#define HW_EVENT_TYPES 4
#define STFT_BANK_COUNT 2
#define TCU_GEAR_COUNT 10

View File

@ -260,10 +260,8 @@ public class LiveDataProcessor {
if (cppFileName == null)
cppFileName = name;
String conditional = (String) entry.get("conditional_compilation");
Boolean withCDefines = (Boolean) entry.get("withCDefines");
Boolean isPtr = (Boolean) entry.get("isPtr");
// Defaults to false if not specified
withCDefines = withCDefines != null && withCDefines;
boolean withCDefines = false;
isPtr = isPtr != null && isPtr;
Object outputNames = entry.get("output_name");