aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-08-23 08:37:11 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-08-23 08:37:11 +0000
commitf229502d9addacfbefe955a47931b980bfbb1a10 (patch)
tree17311a066348fa23088257d51a95354bdb152885 /Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c
parent1e8df8951a3335e4b45ad0c25a82df3d90d785f3 (diff)
downloadlufa-f229502d9addacfbefe955a47931b980bfbb1a10.tar.gz
lufa-f229502d9addacfbefe955a47931b980bfbb1a10.tar.bz2
lufa-f229502d9addacfbefe955a47931b980bfbb1a10.zip
Fixed AVRISP programmer demo -- can now connect to a target and read/write Sig/Lock/Fuse/OSCCAL bytes successfully.
Changed SPI_Init() to allow for the clock polarity and data sample modes to be set. Changed Dataflash_Init() to no longer call SPI_Init() automatically.
Diffstat (limited to 'Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c')
-rw-r--r--Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c b/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c
index 3a42ba32d..9e6467244 100644
--- a/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c
+++ b/Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c
@@ -51,7 +51,7 @@ static ParameterItem_t ParameterTable[] =
.ParamPrivellages = PARAM_PRIV_READ },
{ .ParamID = PARAM_HW_VER,
- .ParamValue = 0x01,
+ .ParamValue = 0x00,
.ParamPrivellages = PARAM_PRIV_READ },
{ .ParamID = PARAM_SW_MAJOR,
@@ -59,7 +59,7 @@ static ParameterItem_t ParameterTable[] =
.ParamPrivellages = PARAM_PRIV_READ },
{ .ParamID = PARAM_SW_MINOR,
- .ParamValue = 0x00,
+ .ParamValue = 0x0C,
.ParamPrivellages = PARAM_PRIV_READ },
{ .ParamID = PARAM_VTARGET,
@@ -67,7 +67,7 @@ static ParameterItem_t ParameterTable[] =
.ParamPrivellages = PARAM_PRIV_READ },
{ .ParamID = PARAM_SCK_DURATION,
- .ParamValue = 0,
+ .ParamValue = 0xFF,
.ParamPrivellages = PARAM_PRIV_READ | PARAM_PRIV_WRITE },
{ .ParamID = PARAM_RESET_POLARITY,