Fix the tokens which enable and disable the different programming protocols in the AVRISP project.
This commit is contained in:
parent
bae00a3d42
commit
258a6a0177
14 changed files with 41 additions and 26 deletions
|
|
@ -28,7 +28,7 @@
|
|||
this software.
|
||||
*/
|
||||
|
||||
#if defined(ENABLE_SPI_PROTOCOL)
|
||||
#if defined(ENABLE_ISP_PROTOCOL)
|
||||
|
||||
/** \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: */
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
this software.
|
||||
*/
|
||||
|
||||
#if defined(ENABLE_SPI_PROTOCOL)
|
||||
#if defined(ENABLE_ISP_PROTOCOL)
|
||||
|
||||
/** \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: */
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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: */
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
this software.
|
||||
*/
|
||||
|
||||
#if defined(ENABLE_XPROG_PROTOCOL)
|
||||
#if defined(ENABLE_PDI_PROTOCOL)
|
||||
|
||||
/** \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: */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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: */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue