mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 19:23:25 +00:00
board: add definition for Teensy 4.1 (#2618)
* board: add definition for Teensy 4.1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user