From 31989233b47a7d5f4360a4516a9e33618aa29f74 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 21 Jul 2009 15:47:24 +0200 Subject: [PATCH] add banner --- README | 5 ----- avr/usbload/config.h | 21 +++++++++++++++++++++ avr/usbload/crc.c | 21 +++++++++++++++++++++ avr/usbload/crc.h | 21 +++++++++++++++++++++ avr/usbload/debug.c | 21 +++++++++++++++++++++ avr/usbload/debug.h | 21 +++++++++++++++++++++ avr/usbload/dump.c | 21 +++++++++++++++++++++ avr/usbload/dump.h | 21 +++++++++++++++++++++ avr/usbload/fifo.c | 21 +++++++++++++++++++++ avr/usbload/fifo.h | 21 +++++++++++++++++++++ avr/usbload/main.c | 21 +++++++++++++++++++++ avr/usbload/requests.h | 21 +++++++++++++++++++++ avr/usbload/sram.c | 21 +++++++++++++++++++++ avr/usbload/sram.h | 21 +++++++++++++++++++++ avr/usbload/timer.c | 21 +++++++++++++++++++++ avr/usbload/timer.h | 21 +++++++++++++++++++++ avr/usbload/uart.c | 21 +++++++++++++++++++++ avr/usbload/uart.h | 21 +++++++++++++++++++++ avr/usbload/usb_bulk.c | 21 +++++++++++++++++++++ avr/usbload/usb_bulk.h | 21 +++++++++++++++++++++ avr/usbload/usbconfig.h | 21 +++++++++++++++++++++ avr/usbload/watchdog.c | 21 +++++++++++++++++++++ avr/usbload/watchdog.h | 21 +++++++++++++++++++++ 23 files changed, 462 insertions(+), 5 deletions(-) diff --git a/README b/README index 7bfc512..e69de29 100644 --- a/README +++ b/README @@ -1,5 +0,0 @@ -TODO: - o ucon64 support - o hi/rom support - o speed optimize - o irq inject \ No newline at end of file diff --git a/avr/usbload/config.h b/avr/usbload/config.h index 4f8d8ed..e12dfa2 100644 --- a/avr/usbload/config.h +++ b/avr/usbload/config.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #ifndef __CONFIH_H__ #define __CONFIH_H__ diff --git a/avr/usbload/crc.c b/avr/usbload/crc.c index 68fb7fc..c79e2df 100644 --- a/avr/usbload/crc.c +++ b/avr/usbload/crc.c @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include #include diff --git a/avr/usbload/crc.h b/avr/usbload/crc.h index a225609..1daa66d 100644 --- a/avr/usbload/crc.h +++ b/avr/usbload/crc.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #ifndef __CRC_H__ #define __CRC_H__ diff --git a/avr/usbload/debug.c b/avr/usbload/debug.c index 86910d2..eb143a9 100644 --- a/avr/usbload/debug.c +++ b/avr/usbload/debug.c @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include #include diff --git a/avr/usbload/debug.h b/avr/usbload/debug.h index d62aaf6..8619d9b 100644 --- a/avr/usbload/debug.h +++ b/avr/usbload/debug.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #ifndef __DEBUG_H__ #define __DEBUG_H__ diff --git a/avr/usbload/dump.c b/avr/usbload/dump.c index c73bb48..343266f 100644 --- a/avr/usbload/dump.c +++ b/avr/usbload/dump.c @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include #include diff --git a/avr/usbload/dump.h b/avr/usbload/dump.h index cda4113..415f645 100644 --- a/avr/usbload/dump.h +++ b/avr/usbload/dump.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #ifndef __DUMP_H__ #define __DUMP_H__ diff --git a/avr/usbload/fifo.c b/avr/usbload/fifo.c index c06e7b4..2f7abc5 100644 --- a/avr/usbload/fifo.c +++ b/avr/usbload/fifo.c @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include "fifo.h" void fifo_init(fifo_t * f, uint8_t * buffer, const uint8_t size) diff --git a/avr/usbload/fifo.h b/avr/usbload/fifo.h index 2d05d4b..f910488 100644 --- a/avr/usbload/fifo.h +++ b/avr/usbload/fifo.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #ifndef __FIFO_H__ #define __FIFO_H__ diff --git a/avr/usbload/main.c b/avr/usbload/main.c index 628e0e3..da6092e 100644 --- a/avr/usbload/main.c +++ b/avr/usbload/main.c @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include #include /* for sei() */ #include /* for _delay_ms() */ diff --git a/avr/usbload/requests.h b/avr/usbload/requests.h index aaf1001..a16005e 100644 --- a/avr/usbload/requests.h +++ b/avr/usbload/requests.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + /* Name: requests.h * Project: custom-class, a basic USB example * Author: Christian Starkjohann diff --git a/avr/usbload/sram.c b/avr/usbload/sram.c index 1f111e2..2bdb9d2 100644 --- a/avr/usbload/sram.c +++ b/avr/usbload/sram.c @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include #include #include diff --git a/avr/usbload/sram.h b/avr/usbload/sram.h index c5e4cc7..8d44eed 100644 --- a/avr/usbload/sram.h +++ b/avr/usbload/sram.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #ifndef __SRAM_H__ #define __SRAM_H__ diff --git a/avr/usbload/timer.c b/avr/usbload/timer.c index 9fd13bf..3022f5e 100644 --- a/avr/usbload/timer.c +++ b/avr/usbload/timer.c @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include #include #include diff --git a/avr/usbload/timer.h b/avr/usbload/timer.h index 7abeaf5..96639de 100644 --- a/avr/usbload/timer.h +++ b/avr/usbload/timer.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + uint16_t timer_start( void ); diff --git a/avr/usbload/uart.c b/avr/usbload/uart.c index c39e812..9041057 100644 --- a/avr/usbload/uart.c +++ b/avr/usbload/uart.c @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include #include #include diff --git a/avr/usbload/uart.h b/avr/usbload/uart.h index e76fccc..a9f802f 100644 --- a/avr/usbload/uart.h +++ b/avr/usbload/uart.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #ifndef __UART_H__ #define __UART_H__ diff --git a/avr/usbload/usb_bulk.c b/avr/usbload/usb_bulk.c index 61e12d0..6018225 100644 --- a/avr/usbload/usb_bulk.c +++ b/avr/usbload/usb_bulk.c @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include #include /* required by usbdrv.h */ diff --git a/avr/usbload/usb_bulk.h b/avr/usbload/usb_bulk.h index 92c1093..3b68fad 100644 --- a/avr/usbload/usb_bulk.h +++ b/avr/usbload/usb_bulk.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + uint8_t usbFunctionWrite(uint8_t * data, uint8_t len); uint8_t usbFunctionRead(uint8_t * data, uint8_t len); diff --git a/avr/usbload/usbconfig.h b/avr/usbload/usbconfig.h index 37ad803..c4ed50b 100644 --- a/avr/usbload/usbconfig.h +++ b/avr/usbload/usbconfig.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + /* Name: usbconfig.h * Project: V-USB, virtual USB port for Atmel's(r) AVR(r) microcontrollers * Author: Christian Starkjohann diff --git a/avr/usbload/watchdog.c b/avr/usbload/watchdog.c index f9e99a0..43bd5d3 100644 --- a/avr/usbload/watchdog.c +++ b/avr/usbload/watchdog.c @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include "watchdog.h" void wdt_init(void) diff --git a/avr/usbload/watchdog.h b/avr/usbload/watchdog.h index 6c13799..0f29698 100644 --- a/avr/usbload/watchdog.h +++ b/avr/usbload/watchdog.h @@ -1,3 +1,24 @@ +/* + * ===================================================================================== + * + * .d8888b 88888b. .d88b. .d8888b 888d888 8888b. 88888b.d88b. + * 88K 888 "88b d8P Y8b 88K 888P" "88b 888 "888 "88b + * "Y8888b. 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 + * X88 888 888 Y8b. X88 888 888 888 888 888 888 + * 88888P' 888 888 "Y8888 88888P' 888 "Y888888 888 888 888 + * + * www.optixx.org + * + * + * Version: 1.0 + * Created: 07/21/2009 03:32:16 PM + * Author: david@optixx.org + * + * ===================================================================================== + */ + + + #include #ifndef __WATCHDOG_H__