From fb5516604d83fb19374e572a8cf3a4721b44412d Mon Sep 17 00:00:00 2001 From: sago35 Date: Thu, 9 Sep 2021 08:23:30 +0900 Subject: [PATCH] targets: add DefaultUART to adafruit boards --- src/machine/board_circuitplay_bluefruit.go | 4 ++++ src/machine/board_circuitplay_express_baremetal.go | 4 ++++ src/machine/board_clue_alpha.go | 4 ++++ src/machine/board_feather-m0.go | 4 ++++ src/machine/board_feather-m4-can.go | 4 ++++ src/machine/board_feather-m4_baremetal.go | 4 ++++ src/machine/board_grandcentral-m4_baremetal.go | 4 ++++ src/machine/board_itsybitsy-m0.go | 4 ++++ src/machine/board_itsybitsy-m4_baremetal.go | 4 ++++ src/machine/board_itsybitsy-nrf52840.go | 4 ++++ src/machine/board_matrixportal-m4_baremetal.go | 4 ++++ src/machine/board_metro-m4-airlift_baremetal.go | 4 ++++ src/machine/board_pybadge_baremetal.go | 4 ++++ src/machine/board_pyportal_baremetal.go | 4 ++++ src/machine/board_qtpy.go | 4 ++++ src/machine/board_trinket.go | 4 ++++ 16 files changed, 64 insertions(+) diff --git a/src/machine/board_circuitplay_bluefruit.go b/src/machine/board_circuitplay_bluefruit.go index a65861b2..0fd699e5 100644 --- a/src/machine/board_circuitplay_bluefruit.go +++ b/src/machine/board_circuitplay_bluefruit.go @@ -83,3 +83,7 @@ var ( usb_VID uint16 = 0x239A usb_PID uint16 = 0x8045 ) + +var ( + DefaultUART = UART0 +) diff --git a/src/machine/board_circuitplay_express_baremetal.go b/src/machine/board_circuitplay_express_baremetal.go index f99043e1..b9c41cf2 100644 --- a/src/machine/board_circuitplay_express_baremetal.go +++ b/src/machine/board_circuitplay_express_baremetal.go @@ -47,3 +47,7 @@ var ( var ( I2S0 = I2S{Bus: sam.I2S} ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_clue_alpha.go b/src/machine/board_clue_alpha.go index 67c2ad7e..d8def8f3 100644 --- a/src/machine/board_clue_alpha.go +++ b/src/machine/board_clue_alpha.go @@ -127,3 +127,7 @@ var ( usb_VID uint16 = 0x239A usb_PID uint16 = 0x8072 ) + +var ( + DefaultUART = UART0 +) diff --git a/src/machine/board_feather-m0.go b/src/machine/board_feather-m0.go index b09c4371..17afc1ec 100644 --- a/src/machine/board_feather-m0.go +++ b/src/machine/board_feather-m0.go @@ -114,3 +114,7 @@ var ( usb_VID uint16 = 0x239A usb_PID uint16 = 0x801B ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_feather-m4-can.go b/src/machine/board_feather-m4-can.go index a954ce9c..eebc3dd4 100644 --- a/src/machine/board_feather-m4-can.go +++ b/src/machine/board_feather-m4-can.go @@ -154,3 +154,7 @@ var ( Bus: sam.CAN1, } ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_feather-m4_baremetal.go b/src/machine/board_feather-m4_baremetal.go index d0d9d6dd..ec243f43 100644 --- a/src/machine/board_feather-m4_baremetal.go +++ b/src/machine/board_feather-m4_baremetal.go @@ -43,3 +43,7 @@ var ( SERCOM: 1, } ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_grandcentral-m4_baremetal.go b/src/machine/board_grandcentral-m4_baremetal.go index a59bd95b..6f0235f9 100644 --- a/src/machine/board_grandcentral-m4_baremetal.go +++ b/src/machine/board_grandcentral-m4_baremetal.go @@ -65,3 +65,7 @@ var ( SERCOM: 2, } ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_itsybitsy-m0.go b/src/machine/board_itsybitsy-m0.go index bd0272d4..788fcef4 100644 --- a/src/machine/board_itsybitsy-m0.go +++ b/src/machine/board_itsybitsy-m0.go @@ -135,3 +135,7 @@ var ( usb_VID uint16 = 0x239A usb_PID uint16 = 0x800F ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_itsybitsy-m4_baremetal.go b/src/machine/board_itsybitsy-m4_baremetal.go index b38655fd..b555525c 100644 --- a/src/machine/board_itsybitsy-m4_baremetal.go +++ b/src/machine/board_itsybitsy-m4_baremetal.go @@ -43,3 +43,7 @@ var ( SERCOM: 1, } ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_itsybitsy-nrf52840.go b/src/machine/board_itsybitsy-nrf52840.go index fc9b23f2..418e8383 100644 --- a/src/machine/board_itsybitsy-nrf52840.go +++ b/src/machine/board_itsybitsy-nrf52840.go @@ -93,3 +93,7 @@ var ( usb_VID uint16 = 0x239A usb_PID uint16 = 0x8051 ) + +var ( + DefaultUART = UART0 +) diff --git a/src/machine/board_matrixportal-m4_baremetal.go b/src/machine/board_matrixportal-m4_baremetal.go index 8e0cd854..f60a535b 100644 --- a/src/machine/board_matrixportal-m4_baremetal.go +++ b/src/machine/board_matrixportal-m4_baremetal.go @@ -50,3 +50,7 @@ var ( SERCOM: 0, } ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_metro-m4-airlift_baremetal.go b/src/machine/board_metro-m4-airlift_baremetal.go index 1564b240..c390b94b 100644 --- a/src/machine/board_metro-m4-airlift_baremetal.go +++ b/src/machine/board_metro-m4-airlift_baremetal.go @@ -52,3 +52,7 @@ var ( SERCOM: 1, } ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_pybadge_baremetal.go b/src/machine/board_pybadge_baremetal.go index 2e4e89bc..259e3c38 100644 --- a/src/machine/board_pybadge_baremetal.go +++ b/src/machine/board_pybadge_baremetal.go @@ -51,3 +51,7 @@ var ( SERCOM: 4, } ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_pyportal_baremetal.go b/src/machine/board_pyportal_baremetal.go index 82a4e334..9dc03e63 100644 --- a/src/machine/board_pyportal_baremetal.go +++ b/src/machine/board_pyportal_baremetal.go @@ -36,3 +36,7 @@ var ( } NINA_SPI = SPI0 ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_qtpy.go b/src/machine/board_qtpy.go index 5f58b8b0..503ba6f7 100644 --- a/src/machine/board_qtpy.go +++ b/src/machine/board_qtpy.go @@ -119,3 +119,7 @@ var ( usb_VID uint16 = 0x239A usb_PID uint16 = 0x80CB ) + +var ( + DefaultUART = UART1 +) diff --git a/src/machine/board_trinket.go b/src/machine/board_trinket.go index 068fa0d7..f97a5ccb 100644 --- a/src/machine/board_trinket.go +++ b/src/machine/board_trinket.go @@ -105,3 +105,7 @@ var ( usb_VID uint16 = 0x239A usb_PID uint16 = 0x801E ) + +var ( + DefaultUART = UART1 +)