Commit graph

8 commits

Author SHA1 Message Date
Michael Farrell
067bfc8b76 Refactoring uart interface (#341)
* uart: Major cleanups
- Adds documentation to the uart API.
- Fixes a buffer overflow issue in `uart_receive`, where the maximum parameter was ignored.
- Splits the maximum length and bytes recieved variables in `uart_receive`.
- Downsizes the receive buffer to the minimum required, saving 16MiB of RAM at runtime.
- Refactors the POSIX and Win32 implementations of uart into separate files.
- Removes the unused `uart_{get,set}_parity` functions, which were not implemented on Win32.
2017-07-05 20:22:02 +02:00
Martin Holst Swende
ca4714cd23 More coverity fixes 2014-10-30 21:49:18 +01:00
martin.holst@gmail.com
babfcaa0f3 Patch by jonor, fixes so uart_receive does not block when data is continuosly received. See http://www.proxmark.org/forum/viewtopic.php?id=1735 2013-09-01 18:46:55 +00:00
roel@libnfc.org
62ee4fedd5 Finally figured out a way to claim a serial port interface under unix 2013-03-22 16:42:26 +00:00
roel@libnfc.org
13dbdd6bb1 (dirty) fix for linux to clean up the /dev/ttyACM* quicker 2013-03-21 10:59:56 +00:00
roel@libnfc.org
0a24369c48 trying to tweak uart code, for better flashing 2013-03-19 16:19:20 +00:00
roel@libnfc.org
a0bbdb76ca fixed stupid 64-bit formatting for x86/amd64 and unix/windows - part3 2013-02-28 22:46:49 +00:00
roel@libnfc.org
5bcc76c427 added missing files 2012-12-04 23:41:54 +00:00