Auto-configure AVRISP programmer configuration when built for the XPLAIN board to match the XPLAIN hardware connections.

This commit is contained in:
Dean Camera 2009-12-03 08:35:32 +00:00
parent a5adbae652
commit f1baf12fae
6 changed files with 62 additions and 16 deletions

View file

@ -43,6 +43,12 @@
#include "V2Protocol.h"
#include "PDITarget.h"
/* Preprocessor Checks: */
#if BOARD == BOARD_XPLAIN
#undef ENABLE_SPI_PROTOCOL
#define ENABLE_PDI_PROTOCOL
#endif
/* Macros: */
#define XPRG_CMD_ENTER_PROGMODE 0x01
#define XPRG_CMD_LEAVE_PROGMODE 0x02