From 0e267dd2304cb45c42d51d54a57107e3f00ee6d8 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Fri, 25 Jun 2021 18:20:44 +0200 Subject: [PATCH] targets: add serial key to JSON files for newly added rp2040 boards, and also nano-33-ble board Signed-off-by: deadprogram --- src/machine/board_nano-33-ble.go | 5 ----- targets/feather-rp2040.json | 1 + targets/nano-33-ble.json | 1 + targets/nano-rp2040.json | 1 + 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/machine/board_nano-33-ble.go b/src/machine/board_nano-33-ble.go index b8d68b0b..4483f811 100644 --- a/src/machine/board_nano-33-ble.go +++ b/src/machine/board_nano-33-ble.go @@ -70,11 +70,6 @@ const ( UART_TX_PIN = P1_03 ) -// Serial is the USB device -var ( - Serial = USB -) - // I2C pins const ( SDA_PIN = P0_31 diff --git a/targets/feather-rp2040.json b/targets/feather-rp2040.json index 45f6b60b..955c2a88 100644 --- a/targets/feather-rp2040.json +++ b/targets/feather-rp2040.json @@ -2,6 +2,7 @@ "inherits": [ "rp2040" ], + "serial": "uart", "build-tags": ["feather_rp2040"], "linkerscript": "targets/feather-rp2040.ld", "extra-files": [ diff --git a/targets/nano-33-ble.json b/targets/nano-33-ble.json index c5381e9f..bbf80da5 100644 --- a/targets/nano-33-ble.json +++ b/targets/nano-33-ble.json @@ -3,6 +3,7 @@ "build-tags": ["nano_33_ble", "nrf52840_reset_bossa"], "flash-command": "bossac_arduino2 -d -i -e -w -v -R --port={port} {bin}", "serial-port": ["acm:2341:805a", "acm:2341:005a"], + "serial": "usb", "flash-1200-bps-reset": "true", "linkerscript": "targets/nano-33-ble.ld" } diff --git a/targets/nano-rp2040.json b/targets/nano-rp2040.json index a0222c97..461e0746 100644 --- a/targets/nano-rp2040.json +++ b/targets/nano-rp2040.json @@ -2,6 +2,7 @@ "inherits": [ "rp2040" ], + "serial": "uart", "build-tags": ["nano_rp2040"], "linkerscript": "targets/pico.ld", "extra-files": [