Fix TPI communications in the AVRISP project when bit-banged USART mode is selected.
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / XPROG / TINYNVM.c
index c650f0d..0e6833a 100644 (file)
@@ -51,7 +51,7 @@ static void TINYNVM_SendPointerAddress(const uint16_t AbsoluteAddress)
 \r
 /** Sends a SIN command to the target with the specified I/O address, ready for the data byte to be written.\r
  *\r
 \r
 /** Sends a SIN command to the target with the specified I/O address, ready for the data byte to be written.\r
  *\r
- *  \param Address  6-bit I/O address to write to in the target's I/O memory space\r
+ *  \param[in] Address  6-bit I/O address to write to in the target's I/O memory space\r
  */\r
 static void TINYNVM_SendReadNVMRegister(uint8_t Address)\r
 {\r
  */\r
 static void TINYNVM_SendReadNVMRegister(uint8_t Address)\r
 {\r
@@ -62,7 +62,7 @@ static void TINYNVM_SendReadNVMRegister(uint8_t Address)
 \r
 /** Sends a SOUT command to the target with the specified I/O address, ready for the data byte to be read.\r
  *\r
 \r
 /** Sends a SOUT command to the target with the specified I/O address, ready for the data byte to be read.\r
  *\r
- *  \param Address  6-bit I/O address to read from in the target's I/O memory space\r
+ *  \param[in] Address  6-bit I/O address to read from in the target's I/O memory space\r
  */\r
 static void TINYNVM_SendWriteNVMRegister(uint8_t Address)\r
 {\r
  */\r
 static void TINYNVM_SendWriteNVMRegister(uint8_t Address)\r
 {\r
@@ -116,7 +116,7 @@ bool TINYNVM_WaitWhileNVMControllerBusy(void)
  *\r
  *  \return Boolean true if the command sequence complete successfully\r
  */\r
  *\r
  *  \return Boolean true if the command sequence complete successfully\r
  */\r
-bool TINYNVM_ReadMemory(const uint32_t ReadAddress, uint8_t* ReadBuffer, uint16_t ReadSize)\r
+bool TINYNVM_ReadMemory(const uint16_t ReadAddress, uint8_t* ReadBuffer, uint16_t ReadSize)\r
 {\r
        /* Wait until the NVM controller is no longer busy */\r
        if (!(TINYNVM_WaitWhileNVMControllerBusy()))\r
 {\r
        /* Wait until the NVM controller is no longer busy */\r
        if (!(TINYNVM_WaitWhileNVMControllerBusy()))\r
@@ -147,7 +147,7 @@ bool TINYNVM_ReadMemory(const uint32_t ReadAddress, uint8_t* ReadBuffer, uint16_
  *\r
  *  \return Boolean true if the command sequence complete successfully\r
  */\r
  *\r
  *  \return Boolean true if the command sequence complete successfully\r
  */\r
-bool TINYNVM_WriteMemory(const uint32_t WriteAddress, const uint8_t* WriteBuffer, uint16_t WriteLength)\r
+bool TINYNVM_WriteMemory(const uint16_t WriteAddress, const uint8_t* WriteBuffer, uint16_t WriteLength)\r
 {\r
        /* Wait until the NVM controller is no longer busy */\r
        if (!(TINYNVM_WaitWhileNVMControllerBusy()))\r
 {\r
        /* Wait until the NVM controller is no longer busy */\r
        if (!(TINYNVM_WaitWhileNVMControllerBusy()))\r