diff --git a/poc/avr_usbload/Makefile b/poc/avr_usbload/Makefile index a837423..ea63cc6 100644 --- a/poc/avr_usbload/Makefile +++ b/poc/avr_usbload/Makefile @@ -7,14 +7,14 @@ # License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt) # This Revision: $Id: Makefile 692 2008-11-07 15:07:40Z cs $ -DEVICE = atmega16 -F_CPU = 16000000 # in Hz +DEVICE = atmega88 +F_CPU = 20000000 # in Hz FUSE_L = # see below for fuse values for particular devices FUSE_H = -AVRDUDE = avrdude -c stk500v2 -p $(DEVICE) -P /dev/tty.PL2303-00002006 +AVRDUDE = avrdude -c usbasp -p $(DEVICE) CFLAGS = -Iusbdrv -I. -DDEBUG_LEVEL=0 -OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o uart.o fifo.o sram.o crc.o debug.o +OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o uart.o fifo.o crc.o debug.o COMPILE = avr-gcc -Wall -Os -DF_CPU=$(F_CPU) $(CFLAGS) -mmcu=$(DEVICE) diff --git a/poc/avr_usbload/commandline/snesuploader.c b/poc/avr_usbload/commandline/snesuploader.c index f7be0b5..4e8ae15 100644 --- a/poc/avr_usbload/commandline/snesuploader.c +++ b/poc/avr_usbload/commandline/snesuploader.c @@ -19,7 +19,7 @@ respectively. */ -#define BUFFER_SIZE 4 +#define BUFFER_SIZE (128) #define BUFFER_CRC (1024 * 64) #define BANK_SIZE (1<<15) diff --git a/poc/avr_usbload/main.c b/poc/avr_usbload/main.c index 6b22a29..29ba1cb 100644 --- a/poc/avr_usbload/main.c +++ b/poc/avr_usbload/main.c @@ -9,7 +9,7 @@ #include "oddebug.h" /* This is also an example for using debug macros */ #include "requests.h" /* The custom request numbers we use */ #include "uart.h" -#include "sram.h" +//#include "sram.h" #include "debug.h" #include "crc.h" @@ -56,7 +56,7 @@ usbMsgLen_t usbFunctionSetup(uchar data[8]){ crc = 0; cli(); for (addr=0x000000; addr