From f229502d9addacfbefe955a47931b980bfbb1a10 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 23 Aug 2009 08:37:11 +0000 Subject: 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. --- Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Projects/Incomplete/AVRISP/Lib/V2ProtocolParams.c') 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, -- cgit v1.2.3