david 15 vuotta sitten
vanhempi
commit
31989233b4

+ 0 - 5
README

@@ -1,5 +0,0 @@
-TODO:
-    o ucon64 support
-    o hi/rom support
-    o speed optimize
-    o irq inject

+ 21 - 0
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__

+ 21 - 0
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 <stdlib.h>
 #include <stdint.h>
 

+ 21 - 0
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__

+ 21 - 0
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 <stdlib.h>
 #include <stdint.h>
 

+ 21 - 0
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__
 

+ 21 - 0
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 <stdlib.h>
 #include <stdint.h>
 

+ 21 - 0
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__
 

+ 21 - 0
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)

+ 21 - 0
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__
 

+ 21 - 0
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 <avr/io.h>
 #include <avr/interrupt.h>      /* for sei() */
 #include <util/delay.h>         /* for _delay_ms() */

+ 21 - 0
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

+ 21 - 0
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 <stdlib.h>
 #include <stdint.h>
 #include <avr/io.h>

+ 21 - 0
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__
 

+ 21 - 0
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 <stdint.h>
 #include <stdio.h>
 #include <avr/io.h> 

+ 21 - 0
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 );

+ 21 - 0
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 <avr/io.h>
 #include <avr/interrupt.h>
 #include <avr/pgmspace.h>

+ 21 - 0
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__
 

+ 21 - 0
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 <avr/io.h>
 #include <avr/pgmspace.h>       /* required by usbdrv.h */

+ 21 - 0
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);

+ 21 - 0
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

+ 21 - 0
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)

+ 21 - 0
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 <avr/wdt.h>
 
 #ifndef __WATCHDOG_H__