projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed V2 Protocol READ_FLASH_ISP and READ_EEPROM_ISP handler code in the AVRISP project.
[pub/USBasp.git]
/
Projects
/
Incomplete
/
AVRISP
/
Lib
/
V2ProtocolParams.c
diff --git
a/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c
b/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c
index
7777701
..
74c8f20
100644
(file)
--- a/
Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c
+++ b/
Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c
@@
-37,7
+37,7
@@
#include "V2ProtocolParams.h"
\r
\r
/* Non-Volatile Parameter Values for EEPROM storage */
\r
#include "V2ProtocolParams.h"
\r
\r
/* Non-Volatile Parameter Values for EEPROM storage */
\r
-uint8_t EEMEM EEPROM_Rest_Polarity;
\r
+uint8_t EEMEM EEPROM_Rest_Polarity
= 0x00
;
\r
\r
/* Volatile Parameter Values for RAM storage */
\r
static ParameterItem_t ParameterTable[] =
\r
\r
/* Volatile Parameter Values for RAM storage */
\r
static ParameterItem_t ParameterTable[] =
\r
@@
-51,7
+51,7
@@
static ParameterItem_t ParameterTable[] =
.ParamPrivellages = PARAM_PRIV_READ },
\r
\r
{ .ParamID = PARAM_HW_VER,
\r
.ParamPrivellages = PARAM_PRIV_READ },
\r
\r
{ .ParamID = PARAM_HW_VER,
\r
- .ParamValue = 0x0
1
,
\r
+ .ParamValue = 0x0
0
,
\r
.ParamPrivellages = PARAM_PRIV_READ },
\r
\r
{ .ParamID = PARAM_SW_MAJOR,
\r
.ParamPrivellages = PARAM_PRIV_READ },
\r
\r
{ .ParamID = PARAM_SW_MAJOR,
\r
@@
-59,7
+59,7
@@
static ParameterItem_t ParameterTable[] =
.ParamPrivellages = PARAM_PRIV_READ },
\r
\r
{ .ParamID = PARAM_SW_MINOR,
\r
.ParamPrivellages = PARAM_PRIV_READ },
\r
\r
{ .ParamID = PARAM_SW_MINOR,
\r
- .ParamValue = 0x0
0
,
\r
+ .ParamValue = 0x0
C
,
\r
.ParamPrivellages = PARAM_PRIV_READ },
\r
\r
{ .ParamID = PARAM_VTARGET,
\r
.ParamPrivellages = PARAM_PRIV_READ },
\r
\r
{ .ParamID = PARAM_VTARGET,
\r
@@
-67,11
+67,11
@@
static ParameterItem_t ParameterTable[] =
.ParamPrivellages = PARAM_PRIV_READ },
\r
\r
{ .ParamID = PARAM_SCK_DURATION,
\r
.ParamPrivellages = PARAM_PRIV_READ },
\r
\r
{ .ParamID = PARAM_SCK_DURATION,
\r
- .ParamValue =
MAX_SPI_SETTINGS
,
\r
+ .ParamValue =
0x06
,
\r
.ParamPrivellages = PARAM_PRIV_READ | PARAM_PRIV_WRITE },
\r
\r
{ .ParamID = PARAM_RESET_POLARITY,
\r
.ParamPrivellages = PARAM_PRIV_READ | PARAM_PRIV_WRITE },
\r
\r
{ .ParamID = PARAM_RESET_POLARITY,
\r
- .ParamValue = 0x0
1
,
\r
+ .ParamValue = 0x0
0
,
\r
.ParamPrivellages = PARAM_PRIV_WRITE },
\r
\r
{ .ParamID = PARAM_STATUS_TGT_CONN,
\r
.ParamPrivellages = PARAM_PRIV_WRITE },
\r
\r
{ .ParamID = PARAM_STATUS_TGT_CONN,
\r
@@
-133,5
+133,5
@@
void V2Params_SetParameterValue(uint8_t ParamID, uint8_t Value)
\r
/* The target RESET line polarity is a non-volatile parameter, save to EEPROM when changed */
\r
if (ParamID == PARAM_RESET_POLARITY)
\r
\r
/* The target RESET line polarity is a non-volatile parameter, save to EEPROM when changed */
\r
if (ParamID == PARAM_RESET_POLARITY)
\r
- eeprom_write_byte(&EEPROM_Rest_Polarity, Value);
\r
+ eeprom_write_byte(&EEPROM_Rest_Polarity, Value);
\r
}
\r
}
\r