A feature to enable an optional pin during the bootloader start #7069
only:uaefi
This commit is contained in:
parent
488fe843ab
commit
5a1c985de0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue