diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-09-29 13:56:52 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-09-29 13:56:52 +0000 |
commit | a509729b2d92b03a3d33ab0e1e1950ff65a96a09 (patch) | |
tree | 3d0b2af8b2bd50b8380d2e4f753134c997a81d6a /Projects/AVRISP-MKII | |
parent | c0e4f52e8fecf74bc26ba813522aa96300bb844e (diff) | |
download | lufa-a509729b2d92b03a3d33ab0e1e1950ff65a96a09.tar.gz lufa-a509729b2d92b03a3d33ab0e1e1950ff65a96a09.tar.bz2 lufa-a509729b2d92b03a3d33ab0e1e1950ff65a96a09.zip |
Changed default value for the reset polarity parameter in the AVRISP-MKII project so that it defaults to active low drive.
Fixed incorrect USB_DeviceState value when unconfiguring the device without an address set.
Diffstat (limited to 'Projects/AVRISP-MKII')
-rw-r--r-- | Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c | 4 | ||||
-rw-r--r-- | Projects/AVRISP-MKII/Lib/V2ProtocolParams.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c b/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c index 55d65511e..294edce0e 100644 --- a/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c +++ b/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c @@ -216,7 +216,9 @@ void ISPTarget_ChangeTargetResetLine(const bool ResetTarget) AUX_LINE_DDR |= AUX_LINE_MASK; if (!(V2Params_GetParameterValue(PARAM_RESET_POLARITY))) - AUX_LINE_PORT |= AUX_LINE_MASK; + AUX_LINE_PORT |= AUX_LINE_MASK; + else + AUX_LINE_PORT &= ~AUX_LINE_MASK; } else { diff --git a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c index f4ab2bd69..31303c77d 100644 --- a/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c +++ b/Projects/AVRISP-MKII/Lib/V2ProtocolParams.c @@ -72,7 +72,7 @@ static ParameterItem_t ParameterTable[] = { .ParamID = PARAM_RESET_POLARITY, .ParamPrivileges = PARAM_PRIV_WRITE, - .ParamValue = 0x00 }, + .ParamValue = 0x01 }, { .ParamID = PARAM_STATUS_TGT_CONN, .ParamPrivileges = PARAM_PRIV_READ, |