Fix the tokens which enable and disable the different programming protocols in the...
authorDean Camera <dean@fourwalledcubicle.com>
Thu, 3 Dec 2009 09:12:36 +0000 (09:12 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Thu, 3 Dec 2009 09:12:36 +0000 (09:12 +0000)
14 files changed:
LUFA/ManPages/ChangeLog.txt
Projects/AVRISP/AVRISP.txt
Projects/AVRISP/Doxygen.conf
Projects/AVRISP/Lib/ISPProtocol.c
Projects/AVRISP/Lib/ISPProtocol.h
Projects/AVRISP/Lib/ISPTarget.c
Projects/AVRISP/Lib/ISPTarget.h
Projects/AVRISP/Lib/PDIProtocol.c
Projects/AVRISP/Lib/PDIProtocol.h
Projects/AVRISP/Lib/PDITarget.c
Projects/AVRISP/Lib/PDITarget.h
Projects/AVRISP/Lib/V2Protocol.c
Projects/AVRISP/Lib/V2Protocol.h
Projects/AVRISP/makefile

index 4d89a29..f0d0478 100644 (file)
@@ -17,8 +17,8 @@
   *  - Added new RNDIS Ethernet Host ClassDriver demo\r
   *  - Added CDC_Host_Flush() function to the CDC Host Class driver to flush sent data to the attached device\r
   *  - Added PDI programming support for XMEGA devices to the AVRISP programmer project\r
   *  - Added new RNDIS Ethernet Host ClassDriver demo\r
   *  - Added CDC_Host_Flush() function to the CDC Host Class driver to flush sent data to the attached device\r
   *  - Added PDI programming support for XMEGA devices to the AVRISP programmer project\r
-  *  - Added support for the XPLAIN dataflash, with new XPLAIN_REV1 board target for the different dataflash used on the\r
-  *    first revision boards compared to the ones mounted on later revisions\r
+  *  - Added support for the XPLAIN board Dataflash, with new XPLAIN_REV1 board target for the different dataflash used\r
+  *    on the first revision boards compared to the one mounted on later revisions\r
   *\r
   *  <b>Changed:</b>\r
   *  - Removed code in the Keyboard demos to send zeroed reports between two reports with differing numbers of keycodes\r
   *\r
   *  <b>Changed:</b>\r
   *  - Removed code in the Keyboard demos to send zeroed reports between two reports with differing numbers of keycodes\r
index bed0a7a..c15c27f 100644 (file)
  *  drivers. When promted, direct your OS to install Atmel's AVRISP-MKII drivers provided with AVRStudio.\r
  *\r
  *  Note that this design currently has several limitations:\r
  *  drivers. When promted, direct your OS to install Atmel's AVRISP-MKII drivers provided with AVRStudio.\r
  *\r
  *  Note that this design currently has several limitations:\r
- *    - Minimum target clock speed of 500KHz due to hardware SPI used\r
+ *    - Minimum ISP target clock speed of 500KHz due to hardware SPI used\r
  *    - No reversed/shorted target connector detection and notification\r
  *\r
  *    - No reversed/shorted target connector detection and notification\r
  *\r
- *  On AVR models with an ADC converter, ACC should be tied to 5V (e.g. VBUS) and the VTARGET_ADC_CHANNEL token should be\r
+ *  On AVR models with an ADC converter, AVCC should be tied to 5V (e.g. VBUS) and the VTARGET_ADC_CHANNEL token should be\r
  *  set to an appropriate ADC channel number in the project makefile for VTARGET detection to operate correctly. On models\r
  *  without an ADC converter, VTARGET will report at a fixed 5V level.\r
  *\r
  *  set to an appropriate ADC channel number in the project makefile for VTARGET detection to operate correctly. On models\r
  *  without an ADC converter, VTARGET will report at a fixed 5V level.\r
  *\r
  *   <tr>\r
  *    <td><b>Programmer Pin:</b></td>\r
  *    <td><b>Target Device Pin:</b></td>\r
  *   <tr>\r
  *    <td><b>Programmer Pin:</b></td>\r
  *    <td><b>Target Device Pin:</b></td>\r
- *    <td><b>ISP 6 Pin Layout:</b></td>\r
+ *    <td><b>PDI 6 Pin Layout:</b></td>\r
  *   </tr>\r
  *   <tr>\r
  *    <td>MISO</td>\r
  *   </tr>\r
  *   <tr>\r
  *    <td>MISO</td>\r
  *    <td>ADC channel number (on supported AVRs) to use for VTARGET level detection.</td> \r
  *   </tr>\r
  *   <tr>\r
  *    <td>ADC channel number (on supported AVRs) to use for VTARGET level detection.</td> \r
  *   </tr>\r
  *   <tr>\r
- *    <td>ENABLE_SPI_PROTOCOL</td>\r
+ *    <td>ENABLE_ISP_PROTOCOL</td>\r
  *    <td>Makefile CDEFS</td>\r
  *    <td>Define to enable SPI programming protocol support. <i>Ignored when compiled for the XPLAIN board.</i></td>  \r
  *   </tr>\r
  *   <tr>\r
  *    <td>Makefile CDEFS</td>\r
  *    <td>Define to enable SPI programming protocol support. <i>Ignored when compiled for the XPLAIN board.</i></td>  \r
  *   </tr>\r
  *   <tr>\r
- *    <td>ENABLE_XPROG_PROTOCOL</td>\r
+ *    <td>ENABLE_PDI_PROTOCOL</td>\r
  *    <td>Makefile CDEFS</td>\r
  *    <td>Define to enable XMEGA PDI programming protocol support. <i>Ignored when compiled for the XPLAIN board.</i></td>  \r
  *   </tr>\r
  *    <td>Makefile CDEFS</td>\r
  *    <td>Define to enable XMEGA PDI programming protocol support. <i>Ignored when compiled for the XPLAIN board.</i></td>  \r
  *   </tr>\r
index dcaaecb..47d88ed 100644 (file)
@@ -1221,7 +1221,7 @@ INCLUDE_FILE_PATTERNS  =
 # undefined via #undef or recursively expanded use the := operator \r
 # instead of the = operator.\r
 \r
 # undefined via #undef or recursively expanded use the := operator \r
 # instead of the = operator.\r
 \r
-PREDEFINED             = __DOXYGEN__ ENABLE_SPI_PROTOCOL ENABLE_PDI_PROTOCOL\r
+PREDEFINED             = __DOXYGEN__ ENABLE_ISP_PROTOCOL ENABLE_PDI_PROTOCOL\r
 \r
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then \r
 # this tag can be used to specify a list of macro names that should be expanded. \r
 \r
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then \r
 # this tag can be used to specify a list of macro names that should be expanded. \r
index 4847c35..1f336b3 100644 (file)
@@ -28,7 +28,7 @@
   this software.\r
 */\r
 \r
   this software.\r
 */\r
 \r
-#if defined(ENABLE_SPI_PROTOCOL)\r
+#if defined(ENABLE_ISP_PROTOCOL)\r
 \r
 /** \file\r
  *\r
 \r
 /** \file\r
  *\r
index 5a144c4..247933e 100644 (file)
                \r
        /* Preprocessor Checks: */\r
                #if BOARD == BOARD_XPLAIN\r
                \r
        /* Preprocessor Checks: */\r
                #if BOARD == BOARD_XPLAIN\r
-                       #undef  ENABLE_SPI_PROTOCOL\r
-                       #define ENABLE_PDI_PROTOCOL\r
+                       #undef  ENABLE_ISP_PROTOCOL\r
+                       \r
+                       #if !defined(ENABLE_PDI_PROTOCOL)\r
+                               #define ENABLE_PDI_PROTOCOL\r
+                       #endif\r
                #endif\r
 \r
        /* Macros: */\r
                #endif\r
 \r
        /* Macros: */\r
index aab64a9..f2b5734 100644 (file)
@@ -28,7 +28,7 @@
   this software.\r
 */\r
 \r
   this software.\r
 */\r
 \r
-#if defined(ENABLE_SPI_PROTOCOL)\r
+#if defined(ENABLE_ISP_PROTOCOL)\r
 \r
 /** \file\r
  *\r
 \r
 /** \file\r
  *\r
index 4c4b891..da5bd30 100644 (file)
 \r
        /* Preprocessor Checks: */\r
                #if BOARD == BOARD_XPLAIN\r
 \r
        /* Preprocessor Checks: */\r
                #if BOARD == BOARD_XPLAIN\r
-                       #undef  ENABLE_SPI_PROTOCOL\r
-                       #define ENABLE_PDI_PROTOCOL\r
+                       #undef  ENABLE_ISP_PROTOCOL\r
+                       \r
+                       #if !defined(ENABLE_PDI_PROTOCOL)\r
+                               #define ENABLE_PDI_PROTOCOL\r
+                       #endif\r
                #endif\r
 \r
        /* Macros: */\r
                #endif\r
 \r
        /* Macros: */\r
index 2ed3ff2..3e16407 100644 (file)
@@ -28,7 +28,7 @@
   this software.\r
 */\r
 \r
   this software.\r
 */\r
 \r
-#if defined(ENABLE_XPROG_PROTOCOL)\r
+#if defined(ENABLE_PDI_PROTOCOL)\r
 \r
 #warning PDI Programming Protocol support is incomplete and not currently suitable for use.\r
 \r
 \r
 #warning PDI Programming Protocol support is incomplete and not currently suitable for use.\r
 \r
index 6ac3eb2..bbbfda5 100644 (file)
 \r
        /* Preprocessor Checks: */\r
                #if BOARD == BOARD_XPLAIN\r
 \r
        /* Preprocessor Checks: */\r
                #if BOARD == BOARD_XPLAIN\r
-                       #undef  ENABLE_SPI_PROTOCOL\r
-                       #define ENABLE_PDI_PROTOCOL\r
+                       #undef  ENABLE_ISP_PROTOCOL\r
+                       \r
+                       #if !defined(ENABLE_PDI_PROTOCOL)\r
+                               #define ENABLE_PDI_PROTOCOL\r
+                       #endif\r
                #endif\r
 \r
        /* Macros: */\r
                #endif\r
 \r
        /* Macros: */\r
index d104206..6726199 100644 (file)
@@ -28,7 +28,7 @@
   this software.\r
 */\r
 \r
   this software.\r
 */\r
 \r
-#if defined(ENABLE_XPROG_PROTOCOL)\r
+#if defined(ENABLE_PDI_PROTOCOL)\r
 \r
 /** \file\r
  *\r
 \r
 /** \file\r
  *\r
index f2281fe..0ecc70a 100644 (file)
        \r
        /* Preprocessor Checks: */\r
                #if BOARD == BOARD_XPLAIN\r
        \r
        /* Preprocessor Checks: */\r
                #if BOARD == BOARD_XPLAIN\r
-                       #undef  ENABLE_SPI_PROTOCOL\r
-                       #define ENABLE_PDI_PROTOCOL\r
+                       #undef  ENABLE_ISP_PROTOCOL\r
+                       \r
+                       #if !defined(ENABLE_PDI_PROTOCOL)\r
+                               #define ENABLE_PDI_PROTOCOL\r
+                       #endif\r
                #endif\r
 \r
        /* Defines: */\r
                #endif\r
 \r
        /* Defines: */\r
index 24f2080..dfb04c6 100644 (file)
@@ -66,7 +66,7 @@ void V2Protocol_ProcessCommand(void)
                case CMD_RESET_PROTECTION:\r
                        V2Protocol_ResetProtection();\r
                        break;\r
                case CMD_RESET_PROTECTION:\r
                        V2Protocol_ResetProtection();\r
                        break;\r
-#if defined(ENABLE_SPI_PROTOCOL)\r
+#if defined(ENABLE_ISP_PROTOCOL)\r
                case CMD_ENTER_PROGMODE_ISP:\r
                        ISPProtocol_EnterISPMode();\r
                        break;\r
                case CMD_ENTER_PROGMODE_ISP:\r
                        ISPProtocol_EnterISPMode();\r
                        break;\r
@@ -98,7 +98,7 @@ void V2Protocol_ProcessCommand(void)
                        ISPProtocol_SPIMulti();\r
                        break;\r
 #endif\r
                        ISPProtocol_SPIMulti();\r
                        break;\r
 #endif\r
-#if defined(ENABLE_XPROG_PROTOCOL)\r
+#if defined(ENABLE_PDI_PROTOCOL)\r
                case CMD_XPROG_SETMODE:\r
                        PDIProtocol_XPROG_SetMode();\r
                        break;\r
                case CMD_XPROG_SETMODE:\r
                        PDIProtocol_XPROG_SetMode();\r
                        break;\r
index f65a57c..8a0ac2f 100644 (file)
 \r
        /* Preprocessor Checks: */\r
                #if BOARD == BOARD_XPLAIN\r
 \r
        /* Preprocessor Checks: */\r
                #if BOARD == BOARD_XPLAIN\r
-                       #undef  ENABLE_SPI_PROTOCOL\r
-                       #define ENABLE_PDI_PROTOCOL\r
+                       #undef  ENABLE_ISP_PROTOCOL\r
+                       \r
+                       #if !defined(ENABLE_PDI_PROTOCOL)\r
+                               #define ENABLE_PDI_PROTOCOL\r
+                       #endif\r
                #endif\r
 
        /* Macros: */\r
                #endif\r
 
        /* Macros: */\r
index d7fe4ac..6eebb2b 100644 (file)
@@ -193,8 +193,8 @@ CDEFS += -DRESET_LINE_PORT=PORTB
 CDEFS += -DRESET_LINE_DDR=DDRB\r
 CDEFS += -DRESET_LINE_MASK="(1 << 4)"\r
 CDEFS += -DVTARGET_ADC_CHANNEL=2\r
 CDEFS += -DRESET_LINE_DDR=DDRB\r
 CDEFS += -DRESET_LINE_MASK="(1 << 4)"\r
 CDEFS += -DVTARGET_ADC_CHANNEL=2\r
-CDEFS += -DENABLE_SPI_PROTOCOL\r
-CDEFS += -DENABLE_XPROG_PROTOCOL\r
+CDEFS += -DENABLE_ISP_PROTOCOL\r
+CDEFS += -DENABLE_PDI_PROTOCOL\r
 \r
 \r
 # Place -D or -U options here for ASM sources\r
 \r
 \r
 # Place -D or -U options here for ASM sources\r