2021-08-03 19:05:01 -07:00
|
|
|
#include "pch.h"
|
2022-10-19 21:59:39 -07:00
|
|
|
|
2023-06-05 11:12:32 -07:00
|
|
|
// PB14 is error LED, configured in board.mk
|
|
|
|
// Board only has 3 LEDs, so no warning LED
|
|
|
|
Gpio getCommsLedPin() {
|
|
|
|
return Gpio::E1;
|
|
|
|
}
|
2022-10-19 21:59:39 -07:00
|
|
|
|
2023-06-05 11:12:32 -07:00
|
|
|
Gpio getRunningLedPin() {
|
|
|
|
return Gpio::B0;
|
2022-10-19 21:59:39 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void preHalInit() {
|
|
|
|
efiSetPadMode("Ethernet", Gpio::A1, PAL_MODE_ALTERNATE(0xb));
|
|
|
|
efiSetPadMode("Ethernet", Gpio::A2, PAL_MODE_ALTERNATE(0xb));
|
|
|
|
efiSetPadMode("Ethernet", Gpio::A7, PAL_MODE_ALTERNATE(0xb));
|
|
|
|
|
|
|
|
efiSetPadMode("Ethernet", Gpio::B13, PAL_MODE_ALTERNATE(0xb));
|
|
|
|
|
|
|
|
efiSetPadMode("Ethernet", Gpio::C1, PAL_MODE_ALTERNATE(0xb));
|
|
|
|
efiSetPadMode("Ethernet", Gpio::C4, PAL_MODE_ALTERNATE(0xb));
|
|
|
|
efiSetPadMode("Ethernet", Gpio::C5, PAL_MODE_ALTERNATE(0xb));
|
|
|
|
|
|
|
|
efiSetPadMode("Ethernet", Gpio::G11, PAL_MODE_ALTERNATE(0xb));
|
|
|
|
efiSetPadMode("Ethernet", Gpio::G13, PAL_MODE_ALTERNATE(0xb));
|
|
|
|
}
|