m6809-computer-tools:dload-server.git
9 years agoOpen and send file requested by client master
Tormod Volden [Sat, 17 Aug 2013 15:17:00 +0000 (17:17 +0200)]
Open and send file requested by client

Add simple support for opening the file named by
the DLOADM command on the Dragon/CoCo.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoAdd optional delay between each transmitted byte
Tormod Volden [Sat, 17 Aug 2013 14:59:48 +0000 (16:59 +0200)]
Add optional delay between each transmitted byte

The bit-banger seems to be too slow to read a byte
immediately following another at 57600 baud.

Today's fast computers can also be a factor, since the
server code might have incurred some "natural" delay in
the old days.

The previous setting of non-buffered I/O is a prerequisite
for this code delay to make a difference.

A value of 500 (microseconds) works fine on a Dragon 32
using its DLOAD command patched with DriveWire serial
drivers at 57600 baud.

This brings the effective transfer rate down quite a bit from
what 57600 baud could theoretically allow, but it is still around
2KB/s.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoDEBUG build option for watching all serial traffic and more
Tormod Volden [Thu, 15 Aug 2013 17:30:08 +0000 (19:30 +0200)]
DEBUG build option for watching all serial traffic and more

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoUse stderr for messages
Tormod Volden [Thu, 15 Aug 2013 17:13:49 +0000 (19:13 +0200)]
Use stderr for messages

Also fix compile warning in printing of requested filename,
and print quotes around it.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoUse non-buffered I/O on serial port
Tormod Volden [Thu, 15 Aug 2013 17:23:22 +0000 (19:23 +0200)]
Use non-buffered I/O on serial port

If two bytes come in a burst at 57600 baud, the
bit-banger seems to miss the start of the second.

So allow the program to push out a byte at a time.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodload.c: move main() to the end
Tormod Volden [Sun, 10 Feb 2013 14:25:55 +0000 (15:25 +0100)]
dload.c: move main() to the end

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodload.c: Explicit declare functions returning void
Tormod Volden [Sun, 10 Feb 2013 14:18:51 +0000 (15:18 +0100)]
dload.c: Explicit declare functions returning void

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodload.c: Include stdlib.h and add exit return value
Tormod Volden [Sun, 10 Feb 2013 14:14:10 +0000 (15:14 +0100)]
dload.c: Include stdlib.h and add exit return value

Also fix argc type in main() and its return type.

This makes gcc happy.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agomakebin.c: Include stdlib.h and return non-zero on error
Tormod Volden [Sun, 10 Feb 2013 20:22:46 +0000 (21:22 +0100)]
makebin.c: Include stdlib.h and return non-zero on error

Also declare main() as returning int.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoSimplify Makefile
Tormod Volden [Sun, 10 Feb 2013 20:20:42 +0000 (21:20 +0100)]
Simplify Makefile

"make" is smart enough to know what to do using its
implicit rules. This also makes it easier to overrule
standard variables like CC and CFLAGS on the make
command line.

Also add a "clean" target.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoUpdate README file with Bryan's newer URL
Tormod Volden [Mon, 19 Aug 2013 22:56:19 +0000 (00:56 +0200)]
Update README file with Bryan's newer URL

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoInitial import of gcc-coco-util-0.1.tar.gz
Tormod Volden [Sun, 10 Feb 2013 14:13:14 +0000 (15:13 +0100)]
Initial import of gcc-coco-util-0.1.tar.gz

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>