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:
Ayke van Laethem
2019-09-30 16:44:21 +02:00
committed by Ron Evans
parent d266e44bc5
commit 4397152108
6 changed files with 56 additions and 64 deletions
+3 -3
View File
@@ -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,
}
)