X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/f1baf12fae61a13e6d8e88655d709d74977322b5..77cd3a42a7eda45138fc9a0fc6a9badd68caac96:/Projects/AVRISP/Lib/ISPTarget.h diff --git a/Projects/AVRISP/Lib/ISPTarget.h b/Projects/AVRISP/Lib/ISPTarget.h index 4c4b891d1..445f3f305 100644 --- a/Projects/AVRISP/Lib/ISPTarget.h +++ b/Projects/AVRISP/Lib/ISPTarget.h @@ -48,9 +48,12 @@ #include "V2ProtocolParams.h" /* Preprocessor Checks: */ - #if BOARD == BOARD_XPLAIN - #undef ENABLE_SPI_PROTOCOL - #define ENABLE_PDI_PROTOCOL + #if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1)) + #undef ENABLE_ISP_PROTOCOL + + #if !defined(ENABLE_PDI_PROTOCOL) + #define ENABLE_PDI_PROTOCOL + #endif #endif /* Macros: */ @@ -59,9 +62,10 @@ /* Function Prototypes: */ uint8_t ISPTarget_GetSPIPrescalerMask(void); - void ISPTarget_ChangeTargetResetLine(bool ResetTarget); - uint8_t ISPTarget_WaitForProgComplete(uint8_t ProgrammingMode, uint16_t PollAddress, uint8_t PollValue, - uint8_t DelayMS, uint8_t ReadMemCommand); + void ISPTarget_ChangeTargetResetLine(const bool ResetTarget); + uint8_t ISPTarget_WaitForProgComplete(const uint8_t ProgrammingMode, const uint16_t PollAddress, + const uint8_t PollValue, const uint8_t DelayMS, + const uint8_t ReadMemCommand); uint8_t ISPTarget_WaitWhileTargetBusy(void); void ISPTarget_LoadExtendedAddress(void);