Developing cross-platform is great! If you look at 1/7 and have to puke, please don't blame me. I got the win32 calls right eventually and tested this with wine and my serprog flasher (which uses serial over USB). I repeat: I used serial over USB inside wine to talk serprog. haha. Tests with programmers using serial.c (e.g. buspirate) on all platforms warmly welcomed.
Stefan Tauner (7): serial.c: abstract system error printing. serial.c: round baudrates to valid ones. Replace sp_sync_read_timeout() with serialport_read_nonblock(). Introduce serialport_write_nonblock(). Replace native calls in serprog with wrapper calls. serial.c: be more pedantic. Enable serprog on Windows.
Makefile | 8 +- programmer.h | 2 + serial.c | 319 ++++++++++++++++++++++++++++++++++++++++++++++++---------- serprog.c | 108 +++++++------------- 4 files changed, 303 insertions(+), 134 deletions(-)