felis/USB_Host_Shield_2.0 — pull request #3 by kibab (2012-01-23 08:38:37+00:00)
Title: Arduino Mega ADK support in USB Host Shield 2.0 library

Hi Oleg,
thank you for your great work, USB Host Shield is really very useful software! One thing I've noticed is that it doesn't support Arduino Mega ADK board (designed by Google based on your USB host shield).
On Mega ADK, USB host controller Max3421e is already on the board, and it uses different pins for SPI SS, MAX INT and MAX RST. Thus some pins should be different for Mega ADK board.
I have added support for Mega ADK in this pull request. First of all, as Arduino IDE doesn't provide any way to set project-wide C++ conditional defines, I chose avrpins.h as a place for BOARD_MEGA_ADK #define. This file is included both by Usb.h and usbhost.h, where modifications should be made to make Mega ADK work.

The only modifications required are some pin differences and explicit reset line pull-up. I'm not sure that I did it in the most beautiful way, please correct me if nessesary.

Hope you'll find this work useful.