this helps bootloader?

This commit is contained in:
rusefillc 2024-01-29 20:03:19 -05:00
parent ac0b293442
commit 9b7b97cf04
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,7 @@ ioportid_t getHwPort(const char *msg, brain_pin_e brainPin) {
return getGpioPorts()[(brainPin - Gpio::A0) / PORT_SIZE];
}
#if ! EFI_BOOTLOADER
/**
* this method returns the numeric part of pin name. For instance, for PC13 this would return '13'
*/
@ -181,6 +182,7 @@ ioportmask_t getHwPin(const char *msg, brain_pin_e brainPin) {
criticalError("%s: Invalid on-chip Gpio: %d", msg, brainPin);
return EFI_ERROR_CODE;
}
#endif // EFI_BOOTLOADER
/**
* Parse string representation of physical pin into Gpio ordinal.