OpenBLT: Enable an arbitrary pin https://github.com/rusefi/rusefi/issues/7069 (#7070)
This commit is contained in:
parent
16ed40b885
commit
7839e3e601
|
@ -37,6 +37,18 @@ protected:
|
||||||
auto redPort = getBrainPinPort(red);
|
auto redPort = getBrainPinPort(red);
|
||||||
auto redPin = getBrainPinIndex(red);
|
auto redPin = getBrainPinIndex(red);
|
||||||
|
|
||||||
|
#ifdef BOOTLOADER_ENABLE_OUTPUT_PIN
|
||||||
|
{
|
||||||
|
ioportid_t en_port = getHwPort("blt-en-pin", BOOTLOADER_ENABLE_OUTPUT_PIN);
|
||||||
|
uint8_t en_pin = getHwPin("blt-en-pin", BOOTLOADER_ENABLE_OUTPUT_PIN);
|
||||||
|
palWritePad(en_port, en_pin, 1);
|
||||||
|
}
|
||||||
|
#endif // BOOTLOADER_ENABLE_OUTPUT_PIN
|
||||||
|
|
||||||
|
#ifdef BOOTLOADER_DISABLE_GREEN_LED
|
||||||
|
greenPort = NULL;
|
||||||
|
#endif // BOOTLOADER_DISABLE_GREEN_LED
|
||||||
|
|
||||||
if (yellowPort) {
|
if (yellowPort) {
|
||||||
palSetPad(yellowPort, yellowPin);
|
palSetPad(yellowPort, yellowPin);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue