projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
10b9394
)
Increased the speed of both software and hardware TPI/PDI programming modes of the...
author
Dean Camera
<dean@fourwalledcubicle.com>
Sun, 21 Feb 2010 05:44:12 +0000
(
05:44
+0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Sun, 21 Feb 2010 05:44:12 +0000
(
05:44
+0000)
LUFA/ManPages/ChangeLog.txt
patch
|
blob
|
blame
|
history
Projects/AVRISP-MKII/Lib/V2Protocol.c
patch
|
blob
|
blame
|
history
Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
patch
|
blob
|
blame
|
history
Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.h
patch
|
blob
|
blame
|
history
diff --git
a/LUFA/ManPages/ChangeLog.txt
b/LUFA/ManPages/ChangeLog.txt
index
5e2241d
..
f05ace3
100644
(file)
--- a/
LUFA/ManPages/ChangeLog.txt
+++ b/
LUFA/ManPages/ChangeLog.txt
@@
-14,6
+14,7
@@
* <b>Changed:</b>
\r
* - AVRISP programmer project now has a more robust timeout system, allowing for a doubling of the software USART speed
\r
* for PDI and TPI programming
\r
* <b>Changed:</b>
\r
* - AVRISP programmer project now has a more robust timeout system, allowing for a doubling of the software USART speed
\r
* for PDI and TPI programming
\r
+ * - Increased the speed of both software and hardware TPI/PDI programming modes of the AVRISP project
\r
*
\r
* <b>Fixed:</b>
\r
* - (None)
\r
*
\r
* <b>Fixed:</b>
\r
* - (None)
\r
diff --git
a/Projects/AVRISP-MKII/Lib/V2Protocol.c
b/Projects/AVRISP-MKII/Lib/V2Protocol.c
index
cea42ea
..
f7e5e81
100644
(file)
--- a/
Projects/AVRISP-MKII/Lib/V2Protocol.c
+++ b/
Projects/AVRISP-MKII/Lib/V2Protocol.c
@@
-42,6
+42,8
@@
uint32_t CurrentAddress;
/** Flag to indicate that the next read/write operation must update the device's current address */
\r
bool MustSetAddress;
\r
\r
/** Flag to indicate that the next read/write operation must update the device's current address */
\r
bool MustSetAddress;
\r
\r
+bool CommandTimedOut;
\r
+
\r
/** Initializes the hardware and software associated with the V2 protocol command handling. */
\r
void V2Protocol_Init(void)
\r
{
\r
/** Initializes the hardware and software associated with the V2 protocol command handling. */
\r
void V2Protocol_Init(void)
\r
{
\r
@@
-68,6
+70,8
@@
void V2Protocol_ProcessCommand(void)
{
\r
uint8_t V2Command = Endpoint_Read_Byte();
\r
\r
{
\r
uint8_t V2Command = Endpoint_Read_Byte();
\r
\r
+ CommandTimedOut = false;
\r
+
\r
switch (V2Command)
\r
{
\r
case CMD_SIGN_ON:
\r
switch (V2Command)
\r
{
\r
case CMD_SIGN_ON:
\r
diff --git
a/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
b/Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
index
a6a5767
..
805eaa3
100644
(file)
--- a/
Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
+++ b/
Projects/AVRISP-MKII/Lib/XPROG/XPROGProtocol.c
@@
-124,9
+124,9
@@
static void XPROGProtocol_EnterXPROGMode(void)
XPROGTarget_SendByte(PDI_CMD_STCS | PDI_RESET_REG);
\r
XPROGTarget_SendByte(PDI_RESET_KEY);
\r
\r
XPROGTarget_SendByte(PDI_CMD_STCS | PDI_RESET_REG);
\r
XPROGTarget_SendByte(PDI_RESET_KEY);
\r
\r
- /* Lower direction change guard time to
8
USART bits */
\r
+ /* Lower direction change guard time to
0
USART bits */
\r
XPROGTarget_SendByte(PDI_CMD_STCS | PDI_CTRL_REG);
\r
XPROGTarget_SendByte(PDI_CMD_STCS | PDI_CTRL_REG);
\r
- XPROGTarget_SendByte(0x0
4
);
\r
+ XPROGTarget_SendByte(0x0
7
);
\r
\r
/* Enable access to the XPROG NVM bus by sending the documented NVM access key to the device */
\r
XPROGTarget_SendByte(PDI_CMD_KEY);
\r
\r
/* Enable access to the XPROG NVM bus by sending the documented NVM access key to the device */
\r
XPROGTarget_SendByte(PDI_CMD_KEY);
\r
@@
-141,9
+141,9
@@
static void XPROGProtocol_EnterXPROGMode(void)
/* Enable TPI programming mode with the attached target */
\r
XPROGTarget_EnableTargetTPI();
\r
\r
/* Enable TPI programming mode with the attached target */
\r
XPROGTarget_EnableTargetTPI();
\r
\r
- /* Lower direction change guard time to
8
USART bits */
\r
+ /* Lower direction change guard time to
0
USART bits */
\r
XPROGTarget_SendByte(TPI_CMD_SSTCS | TPI_CTRL_REG);
\r
XPROGTarget_SendByte(TPI_CMD_SSTCS | TPI_CTRL_REG);
\r
- XPROGTarget_SendByte(0x0
4
);
\r
+ XPROGTarget_SendByte(0x0
7
);
\r
\r
/* Enable access to the XPROG NVM bus by sending the documented NVM access key to the device */
\r
XPROGTarget_SendByte(TPI_CMD_SKEY);
\r
\r
/* Enable access to the XPROG NVM bus by sending the documented NVM access key to the device */
\r
XPROGTarget_SendByte(TPI_CMD_SKEY);
\r
diff --git
a/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.h
b/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.h
index
d08a8b6
..
0c54ad4
100644
(file)
--- a/
Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.h
+++ b/
Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.h
@@
-81,7
+81,7
@@
#endif
\r
\r
/** Number of cycles between each clock when software USART mode is used */
\r
#endif
\r
\r
/** Number of cycles between each clock when software USART mode is used */
\r
- #define BITS_BETWEEN_USART_CLOCKS
10
0
\r
+ #define BITS_BETWEEN_USART_CLOCKS
8
0
\r
\r
/** Total number of bits in a single USART frame */
\r
#define BITS_IN_USART_FRAME 12
\r
\r
/** Total number of bits in a single USART frame */
\r
#define BITS_IN_USART_FRAME 12
\r