OSDN Git Service

final adjustment for 0.1.0
authornaruko <naruko@24ea1065-a21e-4ca1-99c9-f5125deb0858>
Sun, 20 Dec 2009 14:24:17 +0000 (14:24 +0000)
committernaruko <naruko@24ea1065-a21e-4ca1-99c9-f5125deb0858>
Sun, 20 Dec 2009 14:24:17 +0000 (14:24 +0000)
git-svn-id: svn+ssh://svn.osdn.net/svnroot/unagi@334 24ea1065-a21e-4ca1-99c9-f5125deb0858

kazzo/trunk/Makefile
kazzo/trunk/firmware/firmware.mak
kazzo/trunk/readme.txt
kazzo/trunk/usbrequest.txt

index a8d4b07..dfe25c1 100644 (file)
@@ -1,5 +1,13 @@
 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))
@@ -11,3 +19,13 @@ clean:
        (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)) \
+       )
index 5c9884b..26b17e5 100644 (file)
@@ -138,8 +138,10 @@ AVRDUDE_PORT = com3 # programmer connected to serial device
 
 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
index 76cc347..c4d3a24 100644 (file)
@@ -26,7 +26,7 @@ kazzo_test.exe
   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
index c5f574b..91dd459 100644 (file)
@@ -117,7 +117,7 @@ buses. Data is sent in sequential order.
 - 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
@@ -170,8 +170,7 @@ when wIndex is INDEX_BOTH:
  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