2024-09-06 21:37:49 -07:00
|
|
|
#include "pch.h"
|
2024-09-07 13:00:57 -07:00
|
|
|
#include "bench_test.h"
|
2024-09-08 05:32:32 -07:00
|
|
|
#include "flash_main.h"
|
2024-09-06 21:37:49 -07:00
|
|
|
|
|
|
|
static void setBoard_04_pinout() {
|
|
|
|
engineConfiguration->injectionPins[0] = Gpio::D8;
|
|
|
|
engineConfiguration->injectionPins[1] = Gpio::D9;
|
|
|
|
engineConfiguration->injectionPins[2] = Gpio::D10;
|
|
|
|
engineConfiguration->injectionPins[3] = Gpio::D11;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void setBoard_ua4c_pinout() {
|
|
|
|
engineConfiguration->injectionPins[0] = Gpio::D8;
|
2024-09-08 05:32:32 -07:00
|
|
|
engineConfiguration->injectionPins[1] = Gpio::B15;
|
2024-09-06 21:37:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*PUBLIC_API_WEAK*/ void boardTsAction(uint16_t index) {
|
|
|
|
if (index == 0) {
|
|
|
|
setBoard_04_pinout();
|
|
|
|
} else if (index == 1) {
|
|
|
|
setBoard_ua4c_pinout();
|
|
|
|
}
|
2024-09-08 05:32:32 -07:00
|
|
|
writeToFlashNow();
|
2024-09-07 13:00:57 -07:00
|
|
|
fatalErrorForPresetApply();
|
2024-09-06 21:37:49 -07:00
|
|
|
}
|