aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/board_feather-nrf52840-sense.go
diff options
context:
space:
mode:
authorsago35 <[email protected]>2021-06-28 16:09:02 +0900
committerRon Evans <[email protected]>2021-07-20 17:45:41 +0200
commit73cf187552c4a104f986a209c6813a5eb58ac5f7 (patch)
tree66d04a9ac87fd9d4fb2097cb2db714fec0f0e711 /src/machine/board_feather-nrf52840-sense.go
parentb40703e9860ef5872bc57fff0cbb91ee6c964208 (diff)
downloadtinygo-73cf187552c4a104f986a209c6813a5eb58ac5f7.tar.gz
tinygo-73cf187552c4a104f986a209c6813a5eb58ac5f7.zip
machine/feather-nrf52: fix pin definition of uart
Diffstat (limited to 'src/machine/board_feather-nrf52840-sense.go')
-rw-r--r--src/machine/board_feather-nrf52840-sense.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/machine/board_feather-nrf52840-sense.go b/src/machine/board_feather-nrf52840-sense.go
index 4d8804f73..8a4f71446 100644
--- a/src/machine/board_feather-nrf52840-sense.go
+++ b/src/machine/board_feather-nrf52840-sense.go
@@ -72,8 +72,8 @@ const (
// UART0 pins (logical UART1)
const (
- UART_RX_PIN = D0
- UART_TX_PIN = D1
+ UART_RX_PIN = D1
+ UART_TX_PIN = D0
)
// I2C pins
@@ -99,3 +99,7 @@ var (
usb_VID uint16 = 0x239A
usb_PID uint16 = 0x8088
)
+
+var (
+ DefaultUART = UART0
+)