rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
board_id.cpp
Go to the documentation of this file.
1/*
2 * board_id.cpp
3 *
4 * @date Aug 18, 2023
5 * @author Andrey Belomutskiy, (c) 2012-2021
6 * @author andreika <prometheus.pcb@gmail.com>
7 */
8
9#include "pch.h"
10#include "board_id.h"
11#include "boards_id.h"
12#include "boards_dictionary.h"
13
14
16#if HW_PROTEUS
18 // a way to test harness patch cord
19 return STATIC_BOARD_ID_PROTEUS_CANAM;
20 }
22 // a way to test harness patch cord
23 return STATIC_BOARD_ID_PROTEUS_SLINGSHOT;
24 }
26 // a way to test harness patch cord
27 return STATIC_BOARD_ID_PROTEUS_M73;
28 }
30 // a way to test harness patch cord
31 return STATIC_BOARD_ID_PROTEUS_HARLEY;
32 }
34 // a way to test harness patch cord
35 return STATIC_BOARD_ID_PROTEUS_SBC;
36 }
38 // a way to test harness patch cord
39 return STATIC_BOARD_ID_PROTEUS_SUBARU_2011;
40 }
41#endif
42
43#if HW_HELLEN_8CHAN
45 // a way to test harness patch cord
46 return STATIC_BOARD_ID_PLATINUM_SBC;
47 }
49 // a way to test harness patch cord
50 return STATIC_BOARD_ID_PLATINUM_GM_GEN4;
51 }
53 // a way to test harness patch cord
54 return STATIC_BOARD_ID_8CHAN_E92;
55 }
56#endif
57
58#if HW_HELLEN_UAEFI121
60 // a way to test harness patch cord
61 return STATIC_BOARD_ID_UAEFU121_SBC;
62 }
63#endif
64
65#if HW_MICRO_RUSEFI
67 return STATIC_BOARD_ID_MRE_M111;
68 }
69#endif
70
71#if defined(HW_HELLEN_SKIP_BOARD_TYPE)
72 return (board_id_t)STATIC_BOARD_ID;
73#elif HW_HELLEN
75 if (hellenBoardId != -1)
77 #if STATIC_BOARD_ID
78 return (board_id_t)STATIC_BOARD_ID;
79 #else
80 return -2;
81 #endif
82#elif STATIC_BOARD_ID
83// should STATIC_BOARD_ID simply have priority over hellen board id? what's the use-case of HW_HELLEN with STATIC_BOARD_ID?
84 return (board_id_t)STATIC_BOARD_ID;
85#else
86 return 0;
87#endif
88}
board_id_t getBoardId()
Definition board_id.cpp:15
uint16_t board_id_t
Definition board_id.h:11
EngineState engineState
Definition engine.h:344
static EngineAccessor engine
Definition engine.h:413
static constexpr engine_configuration_s * engineConfiguration
hellenBoardId("Detected Board ID", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1368, 1.0, 0.0, 3000.0, "id")