MCU_164P = MCU=atmega164p TARGET=kazzo_mega164p
MCU_16 = MCU=atmega16 TARGET=kazzo_mega16
+SOURCE_ROOT = Makefile COPYING kazzo_test.exe kazzo_schematics.png readme.txt usbrequest.txt kazzo_mega16.hex kazzo_mega164p.hex
+SOURCE_FIRMWARE = \
+ avr_main.c bus_access.c disk_access.c flashmemory.c \
+ bus_access.h disk_access.h flashmemory.h kazzo_request.h kazzo_task.h type.h usbconfig.h \
+ firmware.mak usbdrv/*
+SOURCE_ECHO = Makefile hostecho.c opendevice.c opendevice.h
+SOURCE_MODULE = reader_kazzo.c usb_device.c reader_kazzo.h reader_master.h usb_device.h
+WINDOWS_DRIVER = libusb0.dll kazzo.inf libusb0.sys
all:
(cd firmware;make -f firmware.mak $(MCU_164P))
(cd hostecho;make clean)
p4p:
(cd firmware;make -f firmware.mak $(MCU_164P) program)
+p4f:
+ (cd firmware;make -f firmware.mak $(MCU_164P) fuse)
+package:
+ (cd ..; 7za a kazzo_xxx.zip \
+ $(addprefix kazzo/,$(SOURCE_ROOT)) \
+ $(addprefix kazzo/firmware/,$(SOURCE_FIRMWARE)) \
+ $(addprefix kazzo/hostecho/,$(SOURCE_ECHO)) \
+ $(addprefix kazzo/hostmodule/,$(SOURCE_MODULE)) \
+ $(addprefix kazzo/windows_driver/,$(WINDOWS_DRIVER)) \
+ )
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
-AVRDUDE_WRITE_FUSE = -U lfuse:w:0xc9:m -U hfuse:w:0xae:m
-#-U lfuse:w:0xee:m -U hfuse:w:0xd9:m
+AVRDUDE_WRITE_FUSE = -U lfuse:w:0xae:m -U hfuse:w:0xc9:m
+ifeq ($(MCU),atmega164p)
+ AVRDUDE_WRITE_FUSE = -U lfuse:w:0xee:m -U hfuse:w:0xd9:m
+endif
# Uncomment the following if you do /not/ wish a verification to be
# performed after programming the device.
#AVRDUDE_NO_VERIFY = -V
loop back test client binary for Windows
kazzo_mega16.hex kazzo_mega164p.hex
firmware hex file written in S Record
-kazzo_schematics.pdf kazzo_schematics.png
+kazzo_schematics.png
schematics graphic data
notice! U1 pin number is assigned ATmega16 QFP.
readme.txt
- REQUEST_PPU_WRITE is assigned for dectecting charcter ROM or RAM.
REQUEST_FLASH_CONFIG_SET
-R/W: write (task)
+R/W: write (immediate)
Arguments:
wLength: must be set as a value of 8
wValue: not used
data[1]: PPU flash programming task status
Description:
This request determines the flash programming task status for either
-the CPU or PPU individually. Please see the description for
-REQUEST_BOTH_FLASH_STATUS for more info.
+the CPU or PPU individually.
REQUEST_FLASH_DEVICE
R/W: read