diff options
author | sago35 <[email protected]> | 2021-09-09 08:23:30 +0900 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-09-09 15:58:35 +0200 |
commit | fb5516604d83fb19374e572a8cf3a4721b44412d (patch) | |
tree | b53b42d6db14b414dc39dfc363eac516760859d6 | |
parent | e9f1ed701ac2b3129855466c397bab843c85954d (diff) | |
download | tinygo-fb5516604d83fb19374e572a8cf3a4721b44412d.tar.gz tinygo-fb5516604d83fb19374e572a8cf3a4721b44412d.zip |
targets: add DefaultUART to adafruit boards
-rw-r--r-- | src/machine/board_circuitplay_bluefruit.go | 4 | ||||
-rw-r--r-- | src/machine/board_circuitplay_express_baremetal.go | 4 | ||||
-rw-r--r-- | src/machine/board_clue_alpha.go | 4 | ||||
-rw-r--r-- | src/machine/board_feather-m0.go | 4 | ||||
-rw-r--r-- | src/machine/board_feather-m4-can.go | 4 | ||||
-rw-r--r-- | src/machine/board_feather-m4_baremetal.go | 4 | ||||
-rw-r--r-- | src/machine/board_grandcentral-m4_baremetal.go | 4 | ||||
-rw-r--r-- | src/machine/board_itsybitsy-m0.go | 4 | ||||
-rw-r--r-- | src/machine/board_itsybitsy-m4_baremetal.go | 4 | ||||
-rw-r--r-- | src/machine/board_itsybitsy-nrf52840.go | 4 | ||||
-rw-r--r-- | src/machine/board_matrixportal-m4_baremetal.go | 4 | ||||
-rw-r--r-- | src/machine/board_metro-m4-airlift_baremetal.go | 4 | ||||
-rw-r--r-- | src/machine/board_pybadge_baremetal.go | 4 | ||||
-rw-r--r-- | src/machine/board_pyportal_baremetal.go | 4 | ||||
-rw-r--r-- | src/machine/board_qtpy.go | 4 | ||||
-rw-r--r-- | src/machine/board_trinket.go | 4 |
16 files changed, 64 insertions, 0 deletions
diff --git a/src/machine/board_circuitplay_bluefruit.go b/src/machine/board_circuitplay_bluefruit.go index a65861b27..0fd699e58 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 f99043e17..b9c41cf2e 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 67c2ad7ef..d8def8f35 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 b09c43710..17afc1ecf 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 a954ce9cb..eebc3dd41 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 d0d9d6dd6..ec243f432 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 a59bd95bf..6f0235f9a 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 bd0272d4d..788fcef4a 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 b38655fdf..b555525c0 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 fc9b23f25..418e83839 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 8e0cd8543..f60a535b8 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 1564b2406..c390b94b8 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 2e4e89bc7..259e3c386 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 82a4e3340..9dc03e638 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 5f58b8b0e..503ba6f74 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 068fa0d7d..f97a5ccba 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 +) |