2022-10-19 21:59:39 -07:00
|
|
|
#include "pch.h"
|
|
|
|
|
|
|
|
void setBoardConfigOverrides() {
|
|
|
|
// PB14 is error LED, configured in board.mk
|
|
|
|
engineConfiguration->communicationLedPin = Gpio::B7;
|
|
|
|
engineConfiguration->runningLedPin = Gpio::B0;
|
|
|
|
|
|
|
|
// Board only has 3 LEDs
|
|
|
|
engineConfiguration->warningLedPin = Gpio::Unassigned;
|
|
|
|
}
|
|
|
|
|
|
|
|
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));
|
|
|
|
}
|