Merge remote-tracking branch 'socram8888/cygfix'

This commit is contained in:
Romuald Conty 2015-04-14 17:16:20 +02:00
commit f82aa75072
4 changed files with 16 additions and 1 deletions

View file

@ -77,12 +77,19 @@
const char *serial_ports_device_radix[] = { "tty.SLAB_USBtoUART", "tty.usbserial", "tty.usbmodem", NULL };
# elif defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__FreeBSD_kernel__)
const char *serial_ports_device_radix[] = { "cuaU", "cuau", NULL };
# elif defined (__linux__)
# elif defined (__linux__) || defined (__CYGWIN__)
const char *serial_ports_device_radix[] = { "ttyUSB", "ttyS", "ttyACM", "ttyAMA", "ttyO", NULL };
# else
# error "Can't determine serial string for your system"
# endif
// As of 2015/Feb/22, Cygwin does not handle FIONREAD on physical serial devices.
// We'll use TIOCINQ instead which is pretty much the same.
#ifdef __CYGWIN__
# include <sys/termios.h>
# define FIONREAD TIOCINQ
#endif
// Work-around to claim uart interface using the c_iflag (software input processing) from the termios struct
# define CCLAIMED 0x80000000

View file

@ -1307,6 +1307,8 @@ str_nfc_baud_rate(const nfc_baud_rate nbr)
case NBR_847:
return "847 kbps";
}
return "???";
}
/** @ingroup string-converter
@ -1335,6 +1337,8 @@ str_nfc_modulation_type(const nfc_modulation_type nmt)
case NMT_DEP:
return "D.E.P.";
}
return "???";
}
/** @ingroup string-converter