aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/AVRISP/Lib/PDIProtocol.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-12-14 06:01:56 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-12-14 06:01:56 +0000
commitf3e4fbe5126fc8edf40a0b0ace2d3437ee988d2e (patch)
treef89c9fc12bcdc535b45c5f0c8df366e19fbdbc69 /Projects/AVRISP/Lib/PDIProtocol.c
parent48e50b6b578fa7a74b4f33f067aa684e3469850e (diff)
downloadlufa-f3e4fbe5126fc8edf40a0b0ace2d3437ee988d2e.tar.gz
lufa-f3e4fbe5126fc8edf40a0b0ace2d3437ee988d2e.tar.bz2
lufa-f3e4fbe5126fc8edf40a0b0ace2d3437ee988d2e.zip
Use the PDI REPEAT instruction in the PDI programmer code to reduce protocol overhead and greatly improve transfer throughput. Switch bit-bang USART in the AVRISP project to Timer 1, so that Timer 0 can be used for hardware timeouts while waiting for the NVM bus or controller to become ready.
Diffstat (limited to 'Projects/AVRISP/Lib/PDIProtocol.c')
-rw-r--r--Projects/AVRISP/Lib/PDIProtocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/AVRISP/Lib/PDIProtocol.c b/Projects/AVRISP/Lib/PDIProtocol.c
index 39f33cf49..af6fbeaf9 100644
--- a/Projects/AVRISP/Lib/PDIProtocol.c
+++ b/Projects/AVRISP/Lib/PDIProtocol.c
@@ -114,7 +114,7 @@ static void PDIProtocol_EnterXPROGMode(void)
PDITarget_SendByte(PDI_NVMENABLE_KEY[i - 1]);
/* Wait until the NVM bus becomes active */
- bool NVMBusEnabled = NVMTarget_WaitWhileNVMBusBusy();
+ bool NVMBusEnabled = PDITarget_WaitWhileNVMBusBusy();
Endpoint_Write_Byte(CMD_XPROG);
Endpoint_Write_Byte(XPRG_CMD_ENTER_PROGMODE);