diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-26 04:13:55 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-26 04:13:55 +0000 |
commit | d1608d4af321529f0ddef9defcd97669ae9018c3 (patch) | |
tree | 79a2ba0fe2bfa14670a489e77f4c201f380de4f0 /Projects/AVRISP/Lib/V2ProtocolParams.c | |
parent | 35dac470f243d234d72f34cbaeb1d6c8a15bc435 (diff) | |
download | lufa-d1608d4af321529f0ddef9defcd97669ae9018c3.tar.gz lufa-d1608d4af321529f0ddef9defcd97669ae9018c3.tar.bz2 lufa-d1608d4af321529f0ddef9defcd97669ae9018c3.zip |
Added const where possible to the source functions in the Projects directory.
Added command timeout to the AVRISP project so that incorrectly connected targets no longer freeze the device.
Removed string descriptors from the TeensyHID bootloader to reduce its size.
Diffstat (limited to 'Projects/AVRISP/Lib/V2ProtocolParams.c')
-rw-r--r-- | Projects/AVRISP/Lib/V2ProtocolParams.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Projects/AVRISP/Lib/V2ProtocolParams.c b/Projects/AVRISP/Lib/V2ProtocolParams.c index 6b7f84aa3..eacff0394 100644 --- a/Projects/AVRISP/Lib/V2ProtocolParams.c +++ b/Projects/AVRISP/Lib/V2ProtocolParams.c @@ -43,44 +43,44 @@ uint8_t EEMEM EEPROM_Rest_Polarity = 0x00; static ParameterItem_t ParameterTable[] =
{
{ .ParamID = PARAM_BUILD_NUMBER_LOW,
- .ParamValue = (LUFA_VERSION_INTEGER >> 8),
- .ParamPrivileges = PARAM_PRIV_READ },
+ .ParamPrivileges = PARAM_PRIV_READ,
+ .ParamValue = (LUFA_VERSION_INTEGER >> 8) },
{ .ParamID = PARAM_BUILD_NUMBER_HIGH,
- .ParamValue = (LUFA_VERSION_INTEGER & 0xFF),
- .ParamPrivileges = PARAM_PRIV_READ },
+ .ParamPrivileges = PARAM_PRIV_READ,
+ .ParamValue = (LUFA_VERSION_INTEGER & 0xFF), },
{ .ParamID = PARAM_HW_VER,
- .ParamValue = 0x00,
- .ParamPrivileges = PARAM_PRIV_READ },
+ .ParamPrivileges = PARAM_PRIV_READ,
+ .ParamValue = 0x00 },
{ .ParamID = PARAM_SW_MAJOR,
- .ParamValue = 0x01,
- .ParamPrivileges = PARAM_PRIV_READ },
+ .ParamPrivileges = PARAM_PRIV_READ,
+ .ParamValue = 0x01 },
{ .ParamID = PARAM_SW_MINOR,
- .ParamValue = 0x0D,
- .ParamPrivileges = PARAM_PRIV_READ },
+ .ParamPrivileges = PARAM_PRIV_READ,
+ .ParamValue = 0x0D },
{ .ParamID = PARAM_VTARGET,
- .ParamValue = 0x32,
- .ParamPrivileges = PARAM_PRIV_READ },
+ .ParamPrivileges = PARAM_PRIV_READ,
+ .ParamValue = 0x32 },
{ .ParamID = PARAM_SCK_DURATION,
- .ParamValue = (TOTAL_ISP_PROGRAMMING_SPEEDS - 1),
- .ParamPrivileges = PARAM_PRIV_READ | PARAM_PRIV_WRITE },
+ .ParamPrivileges = PARAM_PRIV_READ | PARAM_PRIV_WRITE,
+ .ParamValue = (TOTAL_ISP_PROGRAMMING_SPEEDS - 1) },
{ .ParamID = PARAM_RESET_POLARITY,
- .ParamValue = 0x00,
- .ParamPrivileges = PARAM_PRIV_WRITE },
+ .ParamPrivileges = PARAM_PRIV_WRITE,
+ .ParamValue = 0x00 },
{ .ParamID = PARAM_STATUS_TGT_CONN,
- .ParamValue = 0x00,
- .ParamPrivileges = PARAM_PRIV_READ },
+ .ParamPrivileges = PARAM_PRIV_READ,
+ .ParamValue = 0x00 },
{ .ParamID = PARAM_DISCHARGEDELAY,
- .ParamValue = 0x00,
- .ParamPrivileges = PARAM_PRIV_WRITE },
+ .ParamPrivileges = PARAM_PRIV_WRITE,
+ .ParamValue = 0x00 },
};
|