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.
This commit is contained in:
parent
1e8df8951a
commit
f229502d9a
9 changed files with 58 additions and 63 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue