diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-01 05:34:59 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-01 05:34:59 +0000 |
commit | 9e7ffcb014d08d9f541cc8000b34f600b437a78e (patch) | |
tree | 42da88479317ce0ff7632cc144983e3913fc23d8 /Projects/AVRISP-MKII/Lib/XPROG | |
parent | 5f363996e3b6fc66017ff02eb2de6f477e0f328e (diff) | |
download | lufa-9e7ffcb014d08d9f541cc8000b34f600b437a78e.tar.gz lufa-9e7ffcb014d08d9f541cc8000b34f600b437a78e.tar.bz2 lufa-9e7ffcb014d08d9f541cc8000b34f600b437a78e.zip |
Make AVRISP XPROG function parameters const where possible.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/XPROG')
-rw-r--r-- | Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.c | 4 | ||||
-rw-r--r-- | Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.c b/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.c index e7513032f..4ed3da75d 100644 --- a/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.c +++ b/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.c @@ -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
*/
-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
* 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
*/
-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
* two bits of the 6-bit address are shifted left once */
diff --git a/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h b/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h index 546e5abaa..5a18567cb 100644 --- a/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h +++ b/Projects/AVRISP-MKII/Lib/XPROG/TINYNVM.h @@ -68,8 +68,8 @@ bool TINYNVM_EraseMemory(void);
#if defined(INCLUDE_FROM_TINYNVM_C)
- static void TINYNVM_SendReadNVMRegister(uint8_t Address);
- static void TINYNVM_SendWriteNVMRegister(uint8_t Address);
+ static void TINYNVM_SendReadNVMRegister(const uint8_t Address);
+ static void TINYNVM_SendWriteNVMRegister(const uint8_t Address);
static void TINYNVM_SendPointerAddress(const uint16_t AbsoluteAddress);
#endif
|