rusefi/firmware/config/boards/board_id.cpp

34 lines
758 B
C++
Raw Normal View History

/*
* board_id.cpp
*
* @date Aug 18, 2023
* @author Andrey Belomutskiy, (c) 2012-2021
* @author andreika <prometheus.pcb@gmail.com>
*/
#include "pch.h"
#include "board_id.h"
#include "boards_dictionary.h"
board_id_t getBoardId() {
2023-10-03 14:03:30 -07:00
#if HW_PROTEUS
if (engineConfiguration->engineType == engine_type_e::MAVERICK_X3) {
// a way to test harness patch cord
return STATIC_BOARD_ID_PROTEUS_CANAM;
}
2023-10-29 07:17:24 -07:00
if (engineConfiguration->engineType == engine_type_e::PROTEUS_HARLEY) {
// a way to test harness patch cord
return STATIC_BOARD_ID_PROTEUS_HARLEY;
}
2023-10-03 14:03:30 -07:00
#endif
#if HW_HELLEN
return (board_id_t)engine->engineState.hellenBoardId;
#elif STATIC_BOARD_ID
return (board_id_t)STATIC_BOARD_ID;
#else
return 0;
#endif
}