Fixed ADK support

This commit is contained in:
Kristian Lauszus 2012-03-19 16:21:19 +01:00
parent 0899357deb
commit 147c011750
2 changed files with 3 additions and 3 deletions

View file

@ -469,7 +469,7 @@ template<typename Tp_pin, typename Tc_bit>
#define P51 Pb2
#define P52 Pb1
#define P53 Pb0
#define P54 Pj2
#define P54 Pe6 // INT on Arduino ADK
#endif //"Mega" pin numbers

View file

@ -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 */