Topic: [SOLVED] UART under Windows

Is it possible to use the UART alias COM1: under windows ? I found the following lines of code in libnfc-read-only\libnfc\buses\uart_posix.c:

#  if defined(__APPLE__)
  // FIXME: find UART connection string for PN53X device on Mac OS X when multiples devices are used
char *serial_ports_device_radix[] = { "tty.SLAB_USBtoUART", NULL };
#  elif defined (__FreeBSD__) || defined (__OpenBSD__)
char *serial_ports_device_radix[] = { "cuaU", "cuau", NULL };
#  elif defined (__linux__)
char *serial_ports_device_radix[] = { "ttyUSB", "ttyS", NULL };
#  else
#    error "Can't determine serial string for your system"
#  endif

=> No windows branch? only apple, *bsd, linux ?

Re: [SOLVED] UART under Windows

Hello,

Windows is not POSIX system, so don't look at POSIX implementation smile

Have a look to uart_win32.c to see Windows specific implementation...

Romuald Conty