Merge pull request #6 from TKJElectronics/master

Fixed the INT pin on the Arduino ADK
This commit is contained in:
Oleg Mazurov 2012-03-19 13:50:27 -07:00
commit 243b63a958
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 */