diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2013-04-16 19:09:25 +0400 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-19 15:45:41 +0200 |
commit | e503daff92735e9f7df7493ffb1b3526005eb07d (patch) | |
tree | 10d1e43cd604520c6566dbf1cacd113b158bb100 | |
parent | 22e45f0b0f956c025339d72ad53dca57ef684858 (diff) | |
download | qtserialport-e503daff92735e9f7df7493ffb1b3526005eb07d.tar.gz |
Add further device filters on Linux without libudev
Added:
* ttyAMA filter for AMBA serial ports, e.g. see
http://lxr.free-electrons.com/source/drivers/tty/serial/amba-pl011.c
* ircomm filter for infrared serial devices, e.g. see
http://www.tldp.org/HOWTO/html_single/Infrared-HOWTO/
Change-Id: I9e1cd04513a937f080978a7ecc7139a906de40f0
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
-rw-r--r-- | src/serialport/qserialportinfo_unix.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp index ee76fc6..1d56f4e 100644 --- a/src/serialport/qserialportinfo_unix.cpp +++ b/src/serialport/qserialportinfo_unix.cpp @@ -77,7 +77,9 @@ static inline const QStringList& filtersOfDevices() << QLatin1String("ttyACM*") // CDC_ACM converters (i.e. Mobile Phones). << QLatin1String("ttyGS*") // Gadget serial device (i.e. Mobile Phones with gadget serial driver). << QLatin1String("ttyMI*") // MOXA pci/serial converters. - << QLatin1String("rfcomm*"); // Bluetooth serial device. + << QLatin1String("ttyAMA*") // AMBA serial device for embedded platform on ARM (i.e. Raspberry Pi). + << QLatin1String("rfcomm*") // Bluetooth serial device. + << QLatin1String("ircomm*"); // IrDA serial device. # elif defined (Q_OS_FREEBSD) << QLatin1String("cu*"); # else |