board: add definition for Teensy 4.1 (#2618)

* board: add definition for Teensy 4.1
This commit is contained in:
BCG
2022-02-13 02:21:03 -05:00
committed by GitHub
parent 262291a80a
commit 4417374b53
6 changed files with 344 additions and 5 deletions
+5 -2
View File
@@ -764,8 +764,11 @@ func (p Pin) getMuxMode(config PinConfig) uint32 {
// UART RX/TX
case PinModeUARTRX, PinModeUARTTX:
mode := uint32(0x2) // UART is always alternate function 2 on Teensy 4.0
// TODO: Teensy 4.1 has a UART (LPUART5) with alternate function 1
mode := uint32(0x2) // UART is usually alternate function 2 on Teensy 4.x
// Teensy 4.1 has a UART (LPUART5) with alternate function 1
if p == PB28 || p == PB29 {
mode = 0x1
}
return mode
// SPI SDI