Make AVRISP XPROG function parameters const where possible.

pull/1469/head
Dean Camera 15 years ago
parent 5f363996e3
commit 9e7ffcb014

@ -9,7 +9,7 @@
* \section Sec_ChangeLogXXXXXX Version XXXXXX * \section Sec_ChangeLogXXXXXX Version XXXXXX
* *
* <b>New:</b> * <b>New:</b>
* - Added TPI programming support for 6-pin ATTINY devices to the AVRISP programmer project * - Added TPI programming support for 6-pin ATTINY devices to the AVRISP programmer project (thanks to Tom Light)
* - Added command timeout counter to the AVRISP project so that the device no longer freezes when incorrectly connected * - Added command timeout counter to the AVRISP project so that the device no longer freezes when incorrectly connected
* to a target * to a target
* - Added new TemperatureDataLogger application, a USB data logger which writes to the device's dataflash and appears to * - Added new TemperatureDataLogger application, a USB data logger which writes to the device's dataflash and appears to

@ -72,11 +72,10 @@
/* Function Prototypes: */ /* Function Prototypes: */
void SetupHardware(void); void SetupHardware(void);
void Process_AVRISP_Commands(void);
void EVENT_USB_Device_Connect(void); void EVENT_USB_Device_Connect(void);
void EVENT_USB_Device_Disconnect(void); void EVENT_USB_Device_Disconnect(void);
void EVENT_USB_Device_ConfigurationChanged(void); void EVENT_USB_Device_ConfigurationChanged(void);
void Process_AVRISP_Commands(void);
#endif #endif

@ -82,9 +82,9 @@
void V2Protocol_ProcessCommand(void); void V2Protocol_ProcessCommand(void);
#if defined(INCLUDE_FROM_V2PROTOCOL_C) #if defined(INCLUDE_FROM_V2PROTOCOL_C)
static void V2Protocol_UnknownCommand(uint8_t V2Command); static void V2Protocol_UnknownCommand(const uint8_t V2Command);
static void V2Protocol_SignOn(void); static void V2Protocol_SignOn(void);
static void V2Protocol_GetSetParam(uint8_t V2Command); static void V2Protocol_GetSetParam(const uint8_t V2Command);
static void V2Protocol_ResetProtection(void); static void V2Protocol_ResetProtection(void);
static void V2Protocol_LoadAddress(void); static void V2Protocol_LoadAddress(void);
#endif #endif

@ -53,7 +53,7 @@ static void TINYNVM_SendPointerAddress(const uint16_t AbsoluteAddress)
* *
* \param[in] Address 6-bit I/O address to write to in the target's I/O memory space * \param[in] Address 6-bit I/O address to write to in the target's I/O memory space
*/ */
static void TINYNVM_SendReadNVMRegister(uint8_t Address) static void TINYNVM_SendReadNVMRegister(const uint8_t Address)
{ {
/* The TPI command for reading from the I/O space uses strange addressing, where the I/O address's upper /* The TPI command for reading from the I/O space uses strange addressing, where the I/O address's upper
* two bits of the 6-bit address are shifted left once */ * two bits of the 6-bit address are shifted left once */
@ -64,7 +64,7 @@ static void TINYNVM_SendReadNVMRegister(uint8_t Address)
* *
* \param[in] Address 6-bit I/O address to read from in the target's I/O memory space * \param[in] Address 6-bit I/O address to read from in the target's I/O memory space
*/ */
static void TINYNVM_SendWriteNVMRegister(uint8_t Address) static void TINYNVM_SendWriteNVMRegister(const uint8_t Address)
{ {
/* The TPI command for writing to the I/O space uses wierd addressing, where the I/O address's upper /* The TPI command for writing to the I/O space uses wierd addressing, where the I/O address's upper
* two bits of the 6-bit address are shifted left once */ * two bits of the 6-bit address are shifted left once */

@ -68,8 +68,8 @@
bool TINYNVM_EraseMemory(void); bool TINYNVM_EraseMemory(void);
#if defined(INCLUDE_FROM_TINYNVM_C) #if defined(INCLUDE_FROM_TINYNVM_C)
static void TINYNVM_SendReadNVMRegister(uint8_t Address); static void TINYNVM_SendReadNVMRegister(const uint8_t Address);
static void TINYNVM_SendWriteNVMRegister(uint8_t Address); static void TINYNVM_SendWriteNVMRegister(const uint8_t Address);
static void TINYNVM_SendPointerAddress(const uint16_t AbsoluteAddress); static void TINYNVM_SendPointerAddress(const uint16_t AbsoluteAddress);
#endif #endif

Loading…
Cancel
Save