mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
machine/samd21: switch UART to use new pin configuration
This allows all possible UART pin configurations to be used and avoids some tricky configuration.
This commit is contained in:
committed by
Ron Evans
parent
d266e44bc5
commit
4397152108
@@ -55,10 +55,10 @@ const (
|
||||
|
||||
// UART1 on the ItsyBitsy M0.
|
||||
var (
|
||||
UART1 = UART{Bus: sam.SERCOM1_USART,
|
||||
UART1 = UART{
|
||||
Buffer: NewRingBuffer(),
|
||||
Mode: PinSERCOM,
|
||||
IRQVal: sam.IRQ_SERCOM1,
|
||||
Bus: sam.SERCOM1_USART,
|
||||
SERCOM: 1,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user