You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Raphael Assenat af12f0d242 Add new product IDs to udev rules 7 years ago
misc Misc tools 8 years ago
scripts Add new product IDs to udev rules 7 years ago
.gitignore WIP 8 years ago
LICENSE GPLv3, Copyright updates, whitespace clean up 7 years ago
Makefile Update gcn64txrx code for multiple channels 7 years ago
Makefile.inc Update gcn64txrx code for multiple channels 7 years ago
Makefile.stk525 Add shorter version string 7 years ago
README.md tool to tools 7 years ago
bootloader.c GPLv3, Copyright updates, whitespace clean up 7 years ago
bootloader.h Start bootloader by USB message 8 years ago
changelog.txt Implement personalities 7 years ago
config.c GPLv3, Copyright updates, whitespace clean up 7 years ago
config.h Add flags for config 8 years ago
dataHidReport.c GPLv3, Copyright updates, whitespace clean up 7 years ago
eeprom.c GPLv3, Copyright updates, whitespace clean up 7 years ago
eeprom.h Implement hid data interface for config and special functions 8 years ago
gamecube.c Multi-player support complete 7 years ago
gamecube.h Multi-player support complete 7 years ago
gamepads.c Multi-player support complete 7 years ago
gamepads.h Multi-player support complete 7 years ago
gcn64_protocol.c honor the channel argument 7 years ago
gcn64_protocol.h Update gcn64txrx code for multiple channels 7 years ago
gcn64txrx.S Update gcn64txrx code for multiple channels 7 years ago
gcn64txrx.h Update gcn64txrx code for multiple channels 7 years ago
hiddata.c Multi-player support complete 7 years ago
hiddata.h Multi-player support complete 7 years ago
intervaltimer.c GPLv3, Copyright updates, whitespace clean up 7 years ago
intervaltimer.h Use a timer for controller polling interval 8 years ago
main.c Dual controller now available as a configured flavor 7 years ago
main.h Implement get_controller_type 7 years ago
mappings.c GPLv3, Copyright updates, whitespace clean up 7 years ago
mappings.h Button mapping framework 8 years ago
n64.c Multi-player support complete 7 years ago
n64.h Use new gampad data and usbpad 8 years ago
release.sh Create an annotated tag 7 years ago
reportdesc.c reportdesc: Use Z instead of Slider 7 years ago
requests.h Dual controller now available as a configured flavor 7 years ago
usart1.c GPLv3, Copyright updates, whitespace clean up 7 years ago
usart1.h WIP 8 years ago
usb.c Multi-player support complete 7 years ago
usb.h Multi-player support complete 7 years ago
usbpad.c Multi-player support complete 7 years ago
usbpad.h Multi-player support complete 7 years ago
usbstrings.c Dynamic device string 7 years ago
usbstrings.h Dynamic device string 7 years ago
util.h Start bootloader by USB message 8 years ago
version.c GPLv3, Copyright updates, whitespace clean up 7 years ago
version.h Use different signature for stk525 build 8 years ago

README.md

Gamecube/N64 to USB adapter

Introduction

This is the source code for a Gamecube/N64 controller to USB adapter firmware meant to run on raphnet.net Multiuse PCB-X.

The project homepage is located at: http://www.raphnet.net/electronique/multiuse_pcbX/index.php

License

The project is released under the General Public License version 3.

Directories

  • / : The firmware source code
  • tool/ : This directory contains utilities to configure and update an adapter, manipulate mempak image files, etc.
  • scripts/ : Scripts and/or useful files

Compiling the firmware

You will need a working avr-gcc toolchain with avr-libc and standard utilities such as make. Just type 'make' and it should build just fine. Under Linux at least.

Programming the firmware

The makefile has a convenient 'flash' target which sends a command to the firmware to enter the bootloader and then executes dfu-programmer (it must of course be installed) with the correct arguments.

Note that the tool must be compiled first and your permissions must also be set so that your user may access the device. See 'Using the tools' below for more information.

Compiling the tools

In the tool/ directory, just type make.

There are a few dependencies:

  • libhidapi-dev
  • libhidapi-hidraw0
  • pkg-config
  • gtk3 (for the gui only)

Provided you have all the dependencies installed, under Linux at least, it should compile without errors. For other environments such has MinGW, there are provisions in the makefile to auto-detect and tweak the build accordingly, but it if fails, be prepared to hack the makefile.

Using the tools

Under Linux, you should configure udev to give the proper permissions to your user, otherwise communicating with the device won't be possible. The same requirement also applies to dfu-programmer.

An easy way to do this is to copy the two files below to /etc/udev/rules.d, restart udev and reconnect the devices.

scripts/99-atmel-dfu.rules scripts/99-raphnet.rules

For information on how to actually /use/ the tools, try --help. Ex:

$ ./gcn64ctl --help