Fixed TeensyHID bootloader not enumerating to the host correctly.
[pub/USBasp.git] / Projects / AVRISP / Lib / ISPTarget.h
index 4c4b891..445f3f3 100644 (file)
                #include "V2ProtocolParams.h"\r
 \r
        /* Preprocessor Checks: */\r
-               #if BOARD == BOARD_XPLAIN\r
-                       #undef  ENABLE_SPI_PROTOCOL\r
-                       #define ENABLE_PDI_PROTOCOL\r
+               #if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1))\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
 \r
        /* Function Prototypes: */\r
                        uint8_t ISPTarget_GetSPIPrescalerMask(void);\r
-                       void    ISPTarget_ChangeTargetResetLine(bool ResetTarget);\r
-                       uint8_t ISPTarget_WaitForProgComplete(uint8_t ProgrammingMode, uint16_t PollAddress, uint8_t PollValue,\r
-                                                   uint8_t DelayMS, uint8_t ReadMemCommand);\r
+                       void    ISPTarget_ChangeTargetResetLine(const bool ResetTarget);\r
+                       uint8_t ISPTarget_WaitForProgComplete(const uint8_t ProgrammingMode, const uint16_t PollAddress,\r
+                                                             const uint8_t PollValue, const uint8_t DelayMS,\r
+                                                             const uint8_t ReadMemCommand);\r
                        uint8_t ISPTarget_WaitWhileTargetBusy(void);\r
                        void    ISPTarget_LoadExtendedAddress(void);\r
 \r