aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-08-24 09:37:54 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-08-24 09:37:54 +0000
commitbff4dbe1897d8c19b4bb9807e76350465ca1f1c4 (patch)
tree5d6f9ffba04b1327b145fc37e24778be856cc8ec /Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c
parentdbb5f249bd057c7b292645463c52067c1da58efa (diff)
downloadlufa-bff4dbe1897d8c19b4bb9807e76350465ca1f1c4.tar.gz
lufa-bff4dbe1897d8c19b4bb9807e76350465ca1f1c4.tar.bz2
lufa-bff4dbe1897d8c19b4bb9807e76350465ca1f1c4.zip
Fix to V2 Protocol for Fuse/Sig/Lock byte read -- off by one error on the array when writing back the response from the device.
FLASH/EEPROM reading and writing currently broken and unfinished, respectively.
Diffstat (limited to 'Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c')
-rw-r--r--Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c b/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c
index 15ac3e5b4..caa7010ba 100644
--- a/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c
+++ b/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c
@@ -71,7 +71,7 @@ void V2Protocol_ChangeTargetResetLine(bool ResetTarget)
}
else
{
- RESET_LINE_PORT &= ~RESET_LINE_MASK;
+ RESET_LINE_PORT &= ~RESET_LINE_MASK;
RESET_LINE_DDR &= ~RESET_LINE_MASK;
}
}
@@ -89,13 +89,13 @@ uint8_t V2Protocol_WaitWhileTargetBusy(void)
do
{
- V2Protocol_DelayMS(1);
-
SPI_SendByte(0xF0);
SPI_SendByte(0x00);
SPI_SendByte(0x00);
ResponseByte = SPI_ReceiveByte();
+
+ V2Protocol_DelayMS(1);
}
while ((ResponseByte & 0x01) && (TimeoutMS--));