From 0e022c7e4501159ff31d764350976a92bee0c0f0 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Sat, 20 Apr 2024 18:15:58 +0300 Subject: [PATCH] MS IO-Box: add sample yaml file (for MRE) --- .../boards/microrusefi/connectors/iobox.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 firmware/config/boards/microrusefi/connectors/iobox.yaml diff --git a/firmware/config/boards/microrusefi/connectors/iobox.yaml b/firmware/config/boards/microrusefi/connectors/iobox.yaml new file mode 100644 index 00000000000..13c1cc1ae19 --- /dev/null +++ b/firmware/config/boards/microrusefi/connectors/iobox.yaml @@ -0,0 +1,81 @@ +# see https://www.msextra.com/doc/pdf/Microsquirt-IObox-1.pdf + +pins: + - pin: 9 + id: MSIOBOX_0_OUT_1 + class: outputs + function: low side, high current + ts_name: MS IO-Box 0 OUT 1 + + - pin: 10 + id: MSIOBOX_0_OUT_2 + class: outputs + function: low side, high current + ts_name: MS IO-Box 0 OUT 2 + + - pin: 7 + id: MSIOBOX_0_OUT_3 + class: outputs + function: low side, mid current + ts_name: MS IO-Box 0 OUT 3 + + - pin: 8 + id: MSIOBOX_0_OUT_4 + class: outputs + function: low side, mid current + ts_name: MS IO-Box 0 OUT 4 + + - pin: 16 + id: MSIOBOX_0_OUT_5 + class: outputs + function: low side, mid current + ts_name: MS IO-Box 0 OUT 5 + + - pin: 17 + id: MSIOBOX_0_OUT_6 + class: outputs + function: low side, mid current + ts_name: MS IO-Box 0 OUT 6 + + - pin: 35 + id: MSIOBOX_0_OUT_7 + class: outputs + function: low side, mid current + ts_name: MS IO-Box 0 OUT 7 + +# MSIOBOX_0_OUT_8 is not exist + + - pin: 32 + id: [MSIOBOX_0_VSS_1, MSIOBOX_0_VSS_1] + class: [event_inputs, switch_inputs] + function: VR+ + ts_name: MS IO-Box 0 VSS1 (VR) + + - pin: 4 + id: [MSIOBOX_0_VSS_2, MSIOBOX_0_VSS_2] + class: [event_inputs, switch_inputs] + function: VR+ + ts_name: MS IO-Box 0 VSS2 (VR) + + - pin: 11 + id: [MSIOBOX_0_VSS_3, MSIOBOX_0_VSS_3] + class: [event_inputs, switch_inputs] + function: VR+ + ts_name: MS IO-Box 0 VSS2 (Hall) + + - pin: 12 + id: [MSIOBOX_0_VSS_4, MSIOBOX_0_VSS_4] + class: [event_inputs, switch_inputs] + function: VR+ + ts_name: MS IO-Box 0 VSS3 (Hall) + + - pin: 6 + id: MSIOBOX_0_SW_1 + class: switch_inputs + function: VR+ + ts_name: MS IO-Box 0 SW1 + +# MSIOBOX_0_SW_2 and MSIOBOX_0_SW_3 are multiplexed with VSS2, VSS3 +# MSIOBOX_0_SW_4 is not exist + +# TODO: add ADC inputs