From b9204f5a7e6d3467c7773831dfb9211b91f0624c Mon Sep 17 00:00:00 2001 From: Robin Krens Date: Fri, 16 Dec 2022 15:30:18 +0100 Subject: [PATCH] Add support to enumerate serial ports on certain arm SOCs Some ARM devices enumerate uart ports as /dev/ttyTHS0, 1, 2, 3 and 4. Added search blob to scan these devices. --- src/impl/list_ports/list_ports_linux.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/impl/list_ports/list_ports_linux.cc b/src/impl/list_ports/list_ports_linux.cc index db2afb2c..256dd6ec 100644 --- a/src/impl/list_ports/list_ports_linux.cc +++ b/src/impl/list_ports/list_ports_linux.cc @@ -306,6 +306,7 @@ serial::list_ports() search_globs.push_back("/dev/tty.*"); search_globs.push_back("/dev/cu.*"); search_globs.push_back("/dev/rfcomm*"); + search_globs.push_back("/dev/ttyTHS*"); vector devices_found = glob( search_globs );