1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Commit Graph

  • 0666ccc7ca linux: Fix warning by marking vid, pid variables unsigned. Martin Ling 2014-08-24 14:08:00 +01:00
  • 7f450f46bd Compile with -pedantic. Martin Ling 2014-08-24 14:00:43 +01:00
  • c51b846eee linux: Define feature macros to get required functions. Martin Ling 2014-08-24 13:34:33 +01:00
  • 7890cef6cf Revise debug macros to work in strict C99. Martin Ling 2014-08-24 13:59:32 +01:00
  • 9caa2e86aa Specialise RETURN_VALUE macro into RETURN_{INT,STRING,POINTER}. Martin Ling 2014-08-24 13:30:34 +01:00
  • 79a8004637 libserialport.h.in: remove trailing commas in enum definitions Antti Nykanen 2014-08-24 12:03:15 +03:00
  • 942a6d349e Bump package version to 0.2.0. Bert Vermeulen 2014-08-20 23:38:24 +02:00
  • f3ccf157cb Rename sp_get_signals() parameter to avoid name clash with Qt headers. Aurelien Jacobs 2014-08-20 17:40:22 +02:00
  • 900904638b configure.ac: We no longer need to set WINVER explicitly. Uwe Hermann 2014-08-05 18:34:16 +02:00
  • 34906a229b windows.c: Remove MinGW workarounds, require MinGW-w64 instead. Uwe Hermann 2014-08-05 18:31:40 +02:00
  • 8eb18f7b5a windows.c: Define a bunch of stuff that's not in MinGW, yet. Uwe Hermann 2014-07-31 23:14:35 +02:00
  • 9a8d04bca6 configure.ac: MinGW build fix (setting WINVER=0x0501). Uwe Hermann 2014-07-31 23:11:40 +02:00
  • 5a8810e2b2 serialport.c: Fix an 'unused variable' compiler warning. Uwe Hermann 2014-07-31 23:09:24 +02:00
  • 12056e2f75 Avoid use of struct serial_struct on systems which don't have it (Android) Marcus Comstedt 2014-07-04 00:04:31 +02:00
  • 5bd33b7c8b Don't use readlinkat if it does not exist Marcus Comstedt 2014-07-04 11:55:04 +02:00
  • 970f279ae4 Introduce SP_API/SP_PRIV to mark visibility of functions. Aurelien Jacobs 2014-06-16 00:40:37 +02:00
  • e4ce975a54 Fix build for platforms without enumeration & port metadata support. Martin Ling 2014-06-14 12:25:18 +01:00
  • 48a4076f69 Move list_ports() implementations to OS-specific files. Aurelien Jacobs 2014-06-13 23:52:16 +02:00
  • 235269990b Fix missing variable on macosx. Aurelien Jacobs 2014-06-13 23:47:45 +02:00
  • e59ecb3359 Ignore build leftovers. Bert Vermeulen 2014-06-11 20:39:09 +02:00
  • 65172beffe Check bus:address and vid:pid validity. Aurelien Jacobs 2014-06-11 17:21:51 +02:00
  • e33dcf90a0 Tidy up and split most OS-specific code to separate files. Martin Ling 2014-06-11 15:10:29 +01:00
  • a93fb46888 Add new APIs to get some USB descriptor details for USB serial ports. Aurelien Jacobs 2014-05-30 22:49:04 +02:00
  • 98cac5d63e Remove the udev dependency and parse the /sys hierarchy instead. Aurelien Jacobs 2014-05-31 00:48:54 +02:00
  • 073c86bd07 Simplify Mac OS implementation of sp_list_ports(). Aurelien Jacobs 2014-05-30 23:40:45 +02:00
  • f095f84164 Remove useless declaration. Aurelien Jacobs 2014-06-10 22:16:16 +02:00
  • da2ede60e4 Remove duplicated include. Aurelien Jacobs 2014-06-10 22:12:21 +02:00
  • 8edf649caf Add format string support to RETURN_ERROR() and RETURN_FAIL(). Aurelien Jacobs 2014-06-02 12:07:50 +02:00
  • 15018e762b Doxyfile: Set version to 0.1.0. libserialport-0.1.0 libserialport-0.1.x Uwe Hermann 2014-05-06 22:51:46 +02:00
  • 41a6f28718 NEWS: Bump date. Uwe Hermann 2014-05-06 20:49:11 +02:00
  • 67765669d5 NEWS: Update for upcoming 0.1.0 release. Uwe Hermann 2014-04-13 19:51:01 +02:00
  • 9fb991348d configure.ac: Add 'check-news' automake option. Uwe Hermann 2014-05-05 02:01:22 +02:00
  • 1652aa869f Add Doxygen @since tags to all public API functions. Uwe Hermann 2014-05-04 21:06:31 +02:00
  • c01b8cae0c doxygen: Updated Doxyfile to doxygen 1.8.6. Uwe Hermann 2014-05-04 17:56:49 +02:00
  • 60db41b9c5 Add the usual AUTHORS file. Uwe Hermann 2014-04-13 19:50:38 +02:00
  • 6c4b27a8b8 Merge pull request #1 from silverbuddy/master Martin Ling 2014-03-22 07:14:49 +00:00
  • e48f0ece0f Fix malloc size (Win32) silverbuddy 2014-03-21 21:49:22 +04:00
  • 904ac164bf Fix compilation (Win32 UNICODE) silverbuddy 2014-03-21 21:43:19 +04:00
  • 524b0e1454 Add runtime version querying functions. Uwe Hermann 2014-03-12 19:30:55 +01:00
  • 3ceb8aecff linux_termios.c: fix check for termios speed fields. Martin Ling 2014-01-03 13:44:14 +01:00
  • 5cea279a85 linux: Speed fields may not be present in kernel termios structures. Martin Ling 2014-01-03 13:38:06 +01:00
  • bd791fe121 Remove need to include linux_termios.h on non-Linux. Martin Ling 2014-01-03 12:16:41 +01:00
  • 27e231ff35 Only build linux_termios.c on Linux. Martin Ling 2014-01-03 11:52:53 +01:00
  • 8814faa3b6 Makefile.am: Add Doxyfile to the generated tarball. Uwe Hermann 2013-12-27 02:44:42 +01:00
  • deaf0a6351 Doxygen: Fix a warning / incorrect parameter name. Uwe Hermann 2013-12-27 02:39:29 +01:00
  • 104f093dba Makefile.am: Fix 'make doc' for out-of-tree builds. Uwe Hermann 2013-12-27 02:39:06 +01:00
  • 7c3a1ee32a configure.ac: Cosmetics, fix typo. Uwe Hermann 2013-12-27 02:28:10 +01:00
  • 6f1186aa82 Add API for waiting on port events. Martin Ling 2013-12-20 16:02:57 +00:00
  • 2dcf830888 Remove various unused code in configure.ac. Martin Ling 2013-12-18 15:59:58 +00:00
  • f15a2349e2 Doxyfile: Update to Doxygen 1.8.5 config file. Uwe Hermann 2013-12-17 22:36:35 +01:00
  • 0a1ab8bf8f Minor Doxygen updates/fixes. Uwe Hermann 2013-12-17 22:31:12 +01:00
  • 1a2a1544d7 win32: Add missing ClearCommError() error handling/reporting. Uwe Hermann 2013-12-17 22:17:16 +01:00
  • 537942c9ed Windows: clear errors after port open. Martin Ling 2013-12-17 17:19:55 +00:00
  • 950faaa94a Remove obsolete comment. Martin Ling 2013-12-08 14:41:53 +00:00
  • 9af8cff38f Remove stray periods from debug messages. Martin Ling 2013-12-07 20:18:27 +00:00
  • 64d996216e Windows nonblocking write: Dont't return if async I/O finishes immediately. Martin Ling 2013-12-07 20:16:38 +00:00
  • 1622ef60b0 Check return value of GetOverlappedResult(). Martin Ling 2013-12-07 16:50:27 +00:00
  • 7c1eff54fd Make RETURN_VALUE macro side effect safe. Martin Ling 2013-12-07 16:26:48 +00:00
  • 33fd8804b8 Fix building for Android. Martin Ling 2013-12-05 20:24:05 +00:00
  • 397d89de3a Make libudev optional. Martin Ling 2013-12-05 20:18:32 +00:00
  • 6c8716e9da TIOCINQ/TIOCOUTQ is not available everywhere. Uwe Hermann 2013-12-01 18:04:24 +01:00
  • 2c827b2188 Handle EINTR from tcdrain() in sp_drain(). Martin Ling 2013-11-27 14:31:54 +00:00
  • b87deb7c70 Clarify documentation regarding signals and EINTR. Martin Ling 2013-11-27 14:12:12 +00:00
  • 859874648e Fix error in documentation. Martin Ling 2013-11-27 14:12:04 +00:00
  • 2007ce5e14 Document EINTR handling. Martin Ling 2013-11-27 13:18:29 +00:00
  • 63a17c64ae Handle EINTR by repeating the call. Martin Ling 2013-11-27 12:42:27 +00:00
  • 1b34204261 Fix conversion of timeout to struct timeval. Martin Ling 2013-11-27 11:11:55 +00:00
  • 3353c22f32 Add sp_input_waiting() and sp_output_waiting() functions. Martin Ling 2013-11-27 02:55:18 +00:00
  • e3dcf9068e New API and implementation for blocking and non-blocking I/O. Martin Ling 2013-11-25 22:12:10 +00:00
  • 8fbf876dfd Set VMIN = 1, not zero which forces non-blocking reads. Martin Ling 2013-11-27 01:16:51 +00:00
  • afb518f04a Return SP_ERR_SUPP on attempt to set mark/space parity without CMSPAR. Martin Ling 2013-11-26 15:26:18 +00:00
  • 00d8c56d91 Minor cosmetics. Uwe Hermann 2013-11-26 16:12:20 +01:00
  • dd7742fb15 Use "sp: " as prefix for debug logs (nicer/shorter). Uwe Hermann 2013-11-26 08:29:18 +01:00
  • c3e0509275 Fix the build on NetBSD/OpenBSD/FreeBSD, possibly others. Uwe Hermann 2013-11-26 08:12:15 +01:00
  • bccc7c9fa0 Set some sane defaults in sp_open() on Windows too. Martin Ling 2013-11-25 18:30:34 +00:00
  • 3f5c06d067 Apply termios setting changes immediately. Martin Ling 2013-11-25 18:21:49 +00:00
  • e432ce6006 Support mark/space parity settings. Martin Ling 2013-11-25 18:05:58 +00:00
  • b251be4b26 Turn off all the fancy termios features. Martin Ling 2013-11-25 17:55:37 +00:00
  • 0765af5644 Windows nonblocking write: 1 byte at a time to know when buffer fills. Martin Ling 2013-11-25 15:21:19 +00:00
  • a3cb91f5e1 Implement non-blocking I/O on Windows. Martin Ling 2013-11-25 11:47:19 +00:00
  • aac4d7f292 Fix SET_FAIL macro. Martin Ling 2013-11-25 11:34:42 +00:00
  • 33d5ff47b5 Handle -EAGAIN in non-blocking reads on Unix, and return 0 from sp_read(). Martin Ling 2013-11-25 10:23:13 +00:00
  • 0ba3e49b45 Fix bug in debug message generation in sp_flush(). Martin Ling 2013-11-23 21:21:18 +00:00
  • 59131d6028 Initialise structure in sp_new_config(). Martin Ling 2013-11-23 20:55:18 +00:00
  • 35ff018b49 Add generator program for configuration accessor headers. Martin Ling 2013-11-23 20:45:09 +00:00
  • 9b1502efce Make configuration structure opaque. Martin Ling 2013-11-23 20:41:01 +00:00
  • 0151b15710 Clarify documentation. Martin Ling 2013-11-23 18:23:45 +00:00
  • 3c126654b3 Add sp_get_port_handle() function. Martin Ling 2013-11-23 17:50:45 +00:00
  • 1c5aae9dc5 Make port structure opaque. Martin Ling 2013-11-23 17:11:19 +00:00
  • 70cd37def2 Add back previously deleted sp_get_config function. Martin Ling 2013-11-23 12:04:21 +00:00
  • a6cda1e8c7 Fix swapped DCD & RI signals on Windows. Martin Ling 2013-11-23 11:59:42 +00:00
  • 6b93ede419 Return SP_ERR_SUPP from sp_list_ports() on unsupported platforms. Martin Ling 2013-11-23 11:57:17 +00:00
  • 64690702cb Generate debug output when returning using TRY() macro. Martin Ling 2013-11-23 11:49:35 +00:00
  • dec10e31d0 Additional argument checking. Martin Ling 2013-11-23 11:39:59 +00:00
  • ea667be751 Add additional debug messages. Martin Ling 2013-11-23 01:08:57 +00:00
  • c33efc482e Add debug output for all entry and exit points. Martin Ling 2013-11-23 00:26:44 +00:00
  • 92f756f8c1 Add debug macros. Martin Ling 2013-11-22 22:44:19 +00:00
  • 863b35e69c Add API for and default handler for debug messages. Martin Ling 2013-11-22 22:41:03 +00:00
  • 71c8a9b906 serialport.c: Add missing linux_termios.h #include. Uwe Hermann 2013-11-22 22:37:15 +01:00
  • f36c639545 Remove dupliate/redundant return value documentation. Martin Ling 2013-11-22 20:27:39 +00:00