Adding Support for Adafruit Metro M4 Express Airlift (#694)

* machine/metro-m4: add support for Adafruit Metro M4 Express Airlift board
This commit is contained in:
BCG
2019-11-15 03:52:54 -05:00
committed by Ron Evans
parent 93961f9d41
commit 009b27350e
5 changed files with 155 additions and 1 deletions
+4
View File
@@ -509,6 +509,8 @@ func (uart UART) Configure(config UARTConfig) {
// determine pads
var txpad, rxpad int
switch config.TX {
case PA04:
txpad = sercomTXPad0
case PA10:
txpad = sercomTXPad2
case PA18:
@@ -520,6 +522,8 @@ func (uart UART) Configure(config UARTConfig) {
}
switch config.RX {
case PA07:
rxpad = sercomRXPad3
case PA11:
rxpad = sercomRXPad3
case PA18: