X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/258a6a01777afadbf6913246f12a7106b421b795..77cd3a42a7eda45138fc9a0fc6a9badd68caac96:/Projects/AVRISP/Lib/ISPTarget.c?ds=sidebyside diff --git a/Projects/AVRISP/Lib/ISPTarget.c b/Projects/AVRISP/Lib/ISPTarget.c index f2b57343f..fbe8ad31c 100644 --- a/Projects/AVRISP/Lib/ISPTarget.c +++ b/Projects/AVRISP/Lib/ISPTarget.c @@ -28,8 +28,6 @@ this software. */ -#if defined(ENABLE_ISP_PROTOCOL) - /** \file * * Target-related functions for the ISP Protocol decoder. @@ -37,6 +35,8 @@ #include "ISPTarget.h" +#if defined(ENABLE_ISP_PROTOCOL) || defined(__DOXYGEN__) + /** Converts the given AVR Studio SCK duration parameter (set by a SET PARAM command from the host) to the nearest * possible SPI clock prescaler mask for passing to the SPI_Init() routine. * @@ -80,7 +80,7 @@ uint8_t ISPTarget_GetSPIPrescalerMask(void) * * \param[in] ResetTarget Boolean true when the target should be held in reset, false otherwise */ -void ISPTarget_ChangeTargetResetLine(bool ResetTarget) +void ISPTarget_ChangeTargetResetLine(const bool ResetTarget) { if (ResetTarget) { @@ -108,8 +108,8 @@ void ISPTarget_ChangeTargetResetLine(bool ResetTarget) * \return V2 Protocol status \ref STATUS_CMD_OK if the no timeout occurred, \ref STATUS_RDY_BSY_TOUT or * \ref STATUS_CMD_TOUT otherwise */ -uint8_t ISPTarget_WaitForProgComplete(uint8_t ProgrammingMode, uint16_t PollAddress, uint8_t PollValue, - uint8_t DelayMS, uint8_t ReadMemCommand) +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 ProgrammingStatus = STATUS_CMD_OK;