Drew Fisher [Wed, 24 Feb 2010 17:37:43 +0000 (12:37 -0500)]
Fix a bug where the USB interrupt doesn't make it to the interrupt vector table.
Somehow, either due to version differences between v-usb or
avr-gcc/avr-libc, SIG_INTERRUPT0 was not getting linked to the interrupt
vector table where it belonged. Naming the routine INT0_vect seems to
fix the problem.
Drew Fisher [Wed, 24 Feb 2010 02:19:52 +0000 (21:19 -0500)]
Setup pins, setup timer, shrink code size (static declarations), test
This commit sets up all the appropriate I/O for the AVR as well as
declaring some functions static so GCC will inline them. In addition,
it provides a simple test function to see if the USB HID reports are
being sent correctly - every 60 reports, it adds one to the report that
it returns, which should result in a binary "counting" appearance in a
gamepad state viewer.