Need ability to remap/unmap communityCommsLedPid away from hardcoded #6888

only:f407-discovery
This commit is contained in:
rusefillc 2024-09-06 11:05:41 -04:00 committed by Andrey
parent c83bf03af2
commit 9dc62b878f
5 changed files with 8 additions and 6 deletions

View File

@ -0,0 +1 @@
Gpio communityCommsLedPin

View File

@ -24,7 +24,7 @@ Gpio getWarningLedPin() {
}
Gpio getCommsLedPin() {
return engineConfiguration->communityCommsLedPid;
return config->communityCommsLedPin;
}
Gpio getRunningLedPin() {
@ -86,7 +86,7 @@ void setBoardDefaultConfiguration() {
setDefaultFrankensoStepperIdleParameters();
setCanFrankensoDefaults();
engineConfiguration->communityCommsLedPid = Gpio::D15; // blue LED on discovery
config->communityCommsLedPin = Gpio::D15; // blue LED on discovery
#if EFI_HIP_9011
setHip9011FrankensoPinout();

View File

@ -11,7 +11,8 @@
#define ts_show_vr_threshold_2 true
#define ts_show_k_line true
#define ts_show_communityCommsLedPid true
! todo: we can do better with board_leds.ini similar to board indicators etc
#define ts_show_communityCommsLedPin true
#define ts_show_onboard_accelerometer true
! reduced MAX_CYLINDER_COUNT gives us a bit more flash and a bit more RAM

View File

@ -550,7 +550,7 @@ uint32_t cylindersCount;Number of cylinder the engine has.;"", 1, 0, 1, @@MAX_CY
! FO_1_2_4_5_3 = 6
#define ts_show_console_settings true
#define ts_show_communityCommsLedPid false
#define ts_show_communityCommsLedPin false
#define ts_show_startup_map_baro_grab true
#define ts_show_wbo_canbus_index true
#define ts_show_wbo_canbus_set_index true
@ -564,7 +564,7 @@ uint32_t cylindersCount;Number of cylinder the engine has.;"", 1, 0, 1, @@MAX_CY
custom firing_order_e 1 bits, U08, @OFFSET@, [0:6], "One Cylinder", "1-3-4-2", "1-2-4-3", "1-3-2-4", "1-5-3-6-2-4", "1-8-4-3-6-5-7-2", "1-2-4-5-3", "1-4-2-5-3-6", "1-2", "1-2-3-4-5-6", "1-2-3", "1-8-7-2-6-5-4-3", "1-5-4-2-6-3-7-8 Mustang", "1-6-3-2-5-4", "1-10-9-4-3-6-5-8-7_2", "1-7-5-11-3-9-6-12-2-8-4-10", "1-7-4-10-2-8-6-12-3-9-5-11", "1-4-3-2", "1-12-5-8-3-10-6-7-2-11-4-9", "1-2-7-8-4-5-6-3", "1-3-7-2-6-5-4-8 HO", "1-2-3-4-5-6-7-8-9", "INVALID", "1-2-3-4-5-6-7-8-9-10-11-12", "1-3-2", "1-2-3-4-5-6-7-8", "1-5-4-8-6-3-7-2", "1-4-3-6-2-5", "1-8-7-3-6-5-4-2", "1-6-2-4-3-5", "1-6-5-4-3-2", "1-4-5-2-3-6", "1-5-4-8-3-7-2-6 Voodoo", "1-6-5-10-2-7-3-8-4-9", "1-8-6-2-7-3-4-5 F136", "fo35", "fo36", "fo37"
firing_order_e firingOrder;
uint8_t justATempTest
Gpio communityCommsLedPid
uint16_t unused2bytesHere
#define CYLINDER_BORE_UNITS "mm"
#define CYLINDER_BORE_TOOLTIP "Cylinder diameter in mm"

View File

@ -3892,7 +3892,6 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "Pulse per km", speedometerPulsePerKm, { speedometerOutputPin }
dialog = outputsDialogLeft
field = communityCommsLedPid, communityCommsLedPid@@if_ts_show_communityCommsLedPid
panel = mainRelayDialog
panel = fuelPumpDialog
panel = tachSettings@@if_ts_show_tachometer
@ -3909,6 +3908,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
panel = outputsDialogRight, East
dialog = statusLeds, "Status LEDs"
field = "Community Comms LED", communityCommsLedPin@@if_ts_show_communityCommsLedPin
field = "Trigger error LED", triggerErrorPin
field = "Debug Trigger Sync", debugTriggerSync