mirror of
https://github.com/raphnet/4nes4snes
synced 2025-01-05 02:28:01 -05:00
update
This commit is contained in:
parent
ec9d9997ab
commit
b8783c060e
7
Makefile
7
Makefile
@ -5,7 +5,7 @@
|
|||||||
# Tabsize: 4
|
# Tabsize: 4
|
||||||
# Copyright: (c) 2006 by OBJECTIVE DEVELOPMENT Software GmbH
|
# Copyright: (c) 2006 by OBJECTIVE DEVELOPMENT Software GmbH
|
||||||
# License: Proprietary, free under certain conditions. See Documentation.
|
# License: Proprietary, free under certain conditions. See Documentation.
|
||||||
# This Revision: $Id: Makefile,v 1.1 2007-03-25 02:59:30 raph Exp $
|
# This Revision: $Id: Makefile,v 1.2 2008-03-30 15:21:39 raph Exp $
|
||||||
|
|
||||||
UISP = uisp -dprog=stk500 -dpart=atmega8 -dserial=/dev/avr
|
UISP = uisp -dprog=stk500 -dpart=atmega8 -dserial=/dev/avr
|
||||||
COMPILE = avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 #-DDEBUG_LEVEL=1
|
COMPILE = avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 #-DDEBUG_LEVEL=1
|
||||||
@ -47,6 +47,9 @@ flash: all
|
|||||||
#$(UISP) --erase --upload --verify if=main.hex
|
#$(UISP) --erase --upload --verify if=main.hex
|
||||||
$(UISP) --erase --upload if=main.hex
|
$(UISP) --erase --upload if=main.hex
|
||||||
|
|
||||||
|
flash_usb:
|
||||||
|
sudo avrdude -p m8 -P usb -c avrispmkII -Uflash:w:$(HEXFILE) -B 1.0
|
||||||
|
|
||||||
# Fuse high byte:
|
# Fuse high byte:
|
||||||
# 0xc9 = 1 1 0 0 1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000)
|
# 0xc9 = 1 1 0 0 1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000)
|
||||||
# ^ ^ ^ ^ ^ ^ ^------ BOOTSZ0
|
# ^ ^ ^ ^ ^ ^ ^------ BOOTSZ0
|
||||||
@ -66,5 +69,7 @@ flash: all
|
|||||||
fuse:
|
fuse:
|
||||||
$(UISP) --wr_fuse_h=0xc9 --wr_fuse_l=0x9f
|
$(UISP) --wr_fuse_h=0xc9 --wr_fuse_l=0x9f
|
||||||
|
|
||||||
|
fuse_usb:
|
||||||
|
sudo avrdude -p m8 -P usb -c avrispmkII -Uhfuse:w:0xc9:m -Ulfuse:w:0x9f:m -B 10.0
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +17,9 @@ Table of contents:
|
|||||||
controllers to a PC using a single circuit.
|
controllers to a PC using a single circuit.
|
||||||
|
|
||||||
The device connects to an USB port and appears to the
|
The device connects to an USB port and appears to the
|
||||||
PC as standard HID joystick with 8 axes and 32 buttons.
|
PC as standard HID joystick with 4 report Id's. This means
|
||||||
|
that it looks like 4 controllers in Windows's
|
||||||
|
control_panel->game_controllers window.
|
||||||
|
|
||||||
|
|
||||||
2) USB Implementation
|
2) USB Implementation
|
||||||
|
Loading…
Reference in New Issue
Block a user