From c920e1b8caeb827be76bc7f94073bfcd0e422189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kope=C4=87?= Date: Thu, 20 Jun 2024 11:17:02 +0200 Subject: [PATCH] Allow for debugger on ttyUSB* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clone Arduino Megas are now enumerated on ttyUSB instead of ttyACM. Signed-off-by: Michał Kopeć --- src/board/arduino/mega2560/board.mk | 2 +- src/board/system76/common/common.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/board/arduino/mega2560/board.mk b/src/board/arduino/mega2560/board.mk index 32c56df03..162376f72 100644 --- a/src/board/arduino/mega2560/board.mk +++ b/src/board/arduino/mega2560/board.mk @@ -8,7 +8,7 @@ board-y += parallel.c EC=atmega EC_VARIANT=atmega2560 -PORT=$(wildcard /dev/ttyACM*) +PORT=$(wildcard /dev/ttyACM* /dev/ttyUSB*) CONSOLE_BAUD=1000000 CFLAGS+=-D__CONSOLE_BAUD__=$(CONSOLE_BAUD) diff --git a/src/board/system76/common/common.mk b/src/board/system76/common/common.mk index 84d6a8a22..dcb3ec4fe 100644 --- a/src/board/system76/common/common.mk +++ b/src/board/system76/common/common.mk @@ -49,7 +49,7 @@ CFLAGS+=-DCONFIG_SECURITY=1 endif # Set external programmer -PROGRAMMER=$(wildcard /dev/serial/by-id/usb-Arduino*) +PROGRAMMER=$(wildcard /dev/ttyACM* /dev/ttyUSB*) ifeq ($(CONFIG_BUS_ESPI),y) CFLAGS += -DCONFIG_BUS_ESPI=1