openpcd/firmware
Holger Hans Peter Freyther ebf16b4ddf usb: Do not send ZLP when we have filled the window
Only send the ZLP if we send less data than was required/asked for
by the host and it is a multiple of the bMaxPacketSize0 (which is
hardcoded to 8 right now).

This is completing the change done in fe88b83e80 to
fix SIMtrace attached to OSX and not regress on windows.

Introduce another parameter to udp_ep0_send_data to specify the window
size (wLength) or if not available the default from USB 2.0 specification.
2011-12-14 15:16:54 +01:00
..
doc Deleted doc/bitpattern.txt 2006-10-09 19:37:19 +00:00
include dfu: Remove unused variable, mark method as not retuning 2011-11-10 07:33:56 +01:00
lib vsprintf.c: Fix compilation by including limits.h 2011-01-31 18:14:08 +03:00
link DFU: Support re-flashing of DFU via DFU 2011-07-30 02:56:36 +02:00
scripts update mkcompile_h to work with git repository 2011-07-30 19:01:57 +02:00
src usb: Do not send ZLP when we have filled the window 2011-12-14 15:16:54 +01:00
COPYING add GPL disclaimer to all C files that I wrote 2006-09-13 16:23:52 +00:00
Makefile simtrace: add some early spi flash utility routines 2011-07-30 00:39:55 +02:00
Makefile.dfu Makefile: SIMtrace uses SAM7S128, not 256 2011-07-30 00:38:20 +02:00
README update README with correct compile instrucitons, refer to wiki 2008-02-08 18:20:45 +00:00
README.simtrace add simtrace README file 2011-07-30 19:07:04 +02:00
TODO Update TODO file 2011-08-16 11:49:22 +02:00

README

Different Targets can be built by implementing a _init_func() and _main_func()_
function in src/main_foo.c

The resulting binary main_foo.bin can be built by issuing
	make BOARD=PCD TARGET=main_foo

If you want to add debugging support (debug unit aka DBGU, RS232), add DEBUG=1


Building dfu.bin (the DFU loader binary):
	make -f Makefile.dfu BOARD=PCD

For more information, please read http://wiki.openpcd.org/wiki/Firmware