Fix the tokens which enable and disable the different programming protocols in the AVRISP project.

This commit is contained in:
Dean Camera 2009-12-03 09:12:36 +00:00
parent bae00a3d42
commit 258a6a0177
14 changed files with 41 additions and 26 deletions

View file

@ -28,7 +28,7 @@
this software.
*/
#if defined(ENABLE_SPI_PROTOCOL)
#if defined(ENABLE_ISP_PROTOCOL)
/** \file
*

View file

@ -43,8 +43,11 @@
/* Preprocessor Checks: */
#if BOARD == BOARD_XPLAIN
#undef ENABLE_SPI_PROTOCOL
#define ENABLE_PDI_PROTOCOL
#undef ENABLE_ISP_PROTOCOL
#if !defined(ENABLE_PDI_PROTOCOL)
#define ENABLE_PDI_PROTOCOL
#endif
#endif
/* Macros: */

View file

@ -28,7 +28,7 @@
this software.
*/
#if defined(ENABLE_SPI_PROTOCOL)
#if defined(ENABLE_ISP_PROTOCOL)
/** \file
*

View file

@ -49,8 +49,11 @@
/* Preprocessor Checks: */
#if BOARD == BOARD_XPLAIN
#undef ENABLE_SPI_PROTOCOL
#define ENABLE_PDI_PROTOCOL
#undef ENABLE_ISP_PROTOCOL
#if !defined(ENABLE_PDI_PROTOCOL)
#define ENABLE_PDI_PROTOCOL
#endif
#endif
/* Macros: */

View file

@ -28,7 +28,7 @@
this software.
*/
#if defined(ENABLE_XPROG_PROTOCOL)
#if defined(ENABLE_PDI_PROTOCOL)
#warning PDI Programming Protocol support is incomplete and not currently suitable for use.

View file

@ -45,8 +45,11 @@
/* Preprocessor Checks: */
#if BOARD == BOARD_XPLAIN
#undef ENABLE_SPI_PROTOCOL
#define ENABLE_PDI_PROTOCOL
#undef ENABLE_ISP_PROTOCOL
#if !defined(ENABLE_PDI_PROTOCOL)
#define ENABLE_PDI_PROTOCOL
#endif
#endif
/* Macros: */

View file

@ -28,7 +28,7 @@
this software.
*/
#if defined(ENABLE_XPROG_PROTOCOL)
#if defined(ENABLE_PDI_PROTOCOL)
/** \file
*

View file

@ -44,8 +44,11 @@
/* Preprocessor Checks: */
#if BOARD == BOARD_XPLAIN
#undef ENABLE_SPI_PROTOCOL
#define ENABLE_PDI_PROTOCOL
#undef ENABLE_ISP_PROTOCOL
#if !defined(ENABLE_PDI_PROTOCOL)
#define ENABLE_PDI_PROTOCOL
#endif
#endif
/* Defines: */

View file

@ -66,7 +66,7 @@ void V2Protocol_ProcessCommand(void)
case CMD_RESET_PROTECTION:
V2Protocol_ResetProtection();
break;
#if defined(ENABLE_SPI_PROTOCOL)
#if defined(ENABLE_ISP_PROTOCOL)
case CMD_ENTER_PROGMODE_ISP:
ISPProtocol_EnterISPMode();
break;
@ -98,7 +98,7 @@ void V2Protocol_ProcessCommand(void)
ISPProtocol_SPIMulti();
break;
#endif
#if defined(ENABLE_XPROG_PROTOCOL)
#if defined(ENABLE_PDI_PROTOCOL)
case CMD_XPROG_SETMODE:
PDIProtocol_XPROG_SetMode();
break;

View file

@ -48,8 +48,11 @@
/* Preprocessor Checks: */
#if BOARD == BOARD_XPLAIN
#undef ENABLE_SPI_PROTOCOL
#define ENABLE_PDI_PROTOCOL
#undef ENABLE_ISP_PROTOCOL
#if !defined(ENABLE_PDI_PROTOCOL)
#define ENABLE_PDI_PROTOCOL
#endif
#endif
/* Macros: */