diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-24 09:37:54 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-24 09:37:54 +0000 |
commit | bff4dbe1897d8c19b4bb9807e76350465ca1f1c4 (patch) | |
tree | 5d6f9ffba04b1327b145fc37e24778be856cc8ec /Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c | |
parent | dbb5f249bd057c7b292645463c52067c1da58efa (diff) | |
download | lufa-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/V2ProtocolParams.c')
-rw-r--r-- | Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c b/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c index 9e6467244..74c8f2024 100644 --- a/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c +++ b/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c @@ -37,7 +37,7 @@ #include "V2ProtocolParams.h"
/* Non-Volatile Parameter Values for EEPROM storage */
-uint8_t EEMEM EEPROM_Rest_Polarity;
+uint8_t EEMEM EEPROM_Rest_Polarity = 0x00;
/* Volatile Parameter Values for RAM storage */
static ParameterItem_t ParameterTable[] =
@@ -67,11 +67,11 @@ static ParameterItem_t ParameterTable[] = .ParamPrivellages = PARAM_PRIV_READ },
{ .ParamID = PARAM_SCK_DURATION,
- .ParamValue = 0xFF,
+ .ParamValue = 0x06,
.ParamPrivellages = PARAM_PRIV_READ | PARAM_PRIV_WRITE },
{ .ParamID = PARAM_RESET_POLARITY,
- .ParamValue = 0x01,
+ .ParamValue = 0x00,
.ParamPrivellages = PARAM_PRIV_WRITE },
{ .ParamID = PARAM_STATUS_TGT_CONN,
@@ -133,5 +133,5 @@ void V2Params_SetParameterValue(uint8_t ParamID, uint8_t Value) /* The target RESET line polarity is a non-volatile parameter, save to EEPROM when changed */
if (ParamID == PARAM_RESET_POLARITY)
- eeprom_write_byte(&EEPROM_Rest_Polarity, Value);
+ eeprom_write_byte(&EEPROM_Rest_Polarity, Value);
}
|