A feature to enable an optional pin during the bootloader start #7069

only:uaefi
This commit is contained in:
rusefi 2025-01-05 21:43:17 -05:00
parent 488fe843ab
commit 5a1c985de0
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ protected:
{
ioportid_t en_port = getHwPort("blt-en-pin", BOOTLOADER_ENABLE_OUTPUT_PIN);
uint8_t en_pin = getHwPin("blt-en-pin", BOOTLOADER_ENABLE_OUTPUT_PIN);
palSetPadMode(en_port, en_pin, PAL_MODE_OUTPUT_PUSHPULL);
palWritePad(en_port, en_pin, 1);
}
#endif // BOOTLOADER_ENABLE_OUTPUT_PIN
@ -49,6 +50,7 @@ protected:
{
ioportid_t en_port = getHwPort("blt-en-pin2", BOOTLOADER_ENABLE_OUTPUT_PIN2);
uint8_t en_pin = getHwPin("blt-en-pin2", BOOTLOADER_ENABLE_OUTPUT_PIN2);
palSetPadMode(en_port, en_pin, PAL_MODE_OUTPUT_PUSHPULL);
palWritePad(en_port, en_pin, 1);
}
#endif // BOOTLOADER_ENABLE_OUTPUT_PIN2