mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
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.
This commit is contained in:
parent
69e0372cf0
commit
b9204f5a7e
@ -306,6 +306,7 @@ serial::list_ports()
|
|||||||
search_globs.push_back("/dev/tty.*");
|
search_globs.push_back("/dev/tty.*");
|
||||||
search_globs.push_back("/dev/cu.*");
|
search_globs.push_back("/dev/cu.*");
|
||||||
search_globs.push_back("/dev/rfcomm*");
|
search_globs.push_back("/dev/rfcomm*");
|
||||||
|
search_globs.push_back("/dev/ttyTHS*");
|
||||||
|
|
||||||
vector<string> devices_found = glob( search_globs );
|
vector<string> devices_found = glob( search_globs );
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user