From 147c0117504e22b39524f7e6606a39b1ec834140 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Mon, 19 Mar 2012 16:21:19 +0100 Subject: [PATCH] Fixed ADK support --- avrpins.h | 2 +- usbhost.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/avrpins.h b/avrpins.h index a6ea90c2..bb41602c 100644 --- a/avrpins.h +++ b/avrpins.h @@ -469,7 +469,7 @@ template #define P51 Pb2 #define P52 Pb1 #define P53 Pb0 -#define P54 Pj2 +#define P54 Pe6 // INT on Arduino ADK #endif //"Mega" pin numbers diff --git a/usbhost.h b/usbhost.h index f68d78de..910603b0 100644 --- a/usbhost.h +++ b/usbhost.h @@ -88,8 +88,8 @@ MAX3421e< SS, INTR >::MAX3421e() INTR::SetDirRead(); #ifdef BOARD_MEGA_ADK /* For Mega ADK, which has Max3421e on-board, set MAX_RESET to Output mode, and pull Reset to HIGH */ - DDRJ |= 0x04; - PORTJ |= 0x04; + DDRJ |= _BV(PJ2); + PORTJ |= _BV(PJ2); #endif /* MAX3421E - full-duplex SPI, level interrupt */