aboutsummaryrefslogtreecommitdiff
path: root/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c
AgeCommit message (Collapse)Author
2012-04-15Minor documentation improvements.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2165 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-04-01Reverted AVRISP-MKII clone project watchdog based command timeout patch in ↵Dean
favour of a hardware timer, to allow for use in devices with WDTRST fuse programmed. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2127 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-19Oops - don't reset AVRISP-MKII timeout in XPROG mode, as this is synchronous ↵Dean
serial and data is always received regardless of attached or non-attached target. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2055 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file contributor copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2026 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file header copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2025 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-01-30Fixed AVRISP-MKII Clone timing out on long programming commands such as ↵Dean
programming the EEPROM on an ATMEGA8 (thanks to Martin Kelling). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2016 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-12-23Run wspurify script on /trunk/ and /branches/ C source files, to remove any ↵dean
trailing whitespace at the end of each line. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2007 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-10-12Added reliability patches to the AVRISP-MKII Clone project's PDI/TPI ↵Dean
protocols (thanks to Justin Mattair). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1947 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-10-07Added reliability patches to the AVRISP-MKII Clone project's ISP and PDI/TPI ↵Dean
protocols (thanks to Justin Mattair). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1937 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-05Massive corrections to the project documentation and code comments, thanks ↵Dean
to Russian translation services provided by Andrey from Microsin.ru. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1782 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-29Oops - revert commit of an incomplete port of the AVRISP-MKII project.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1772 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-29Added new incomplete AudioInputHost Host LowLevel demo.Dean
Added missing Audio class control request definitions. Added support for the Audio class GET STATUS request so that it is correctly ACKed when sent by the host. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1771 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-22Changed AVRISP-MKII project to use the Watchdog interrupt for command ↵Dean
timeouts, to reduce CPU usage and free timer 0 for other uses in the future. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1640 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-01Update copyright year on all source files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1622 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-17Rename incorrectly named XPROGTarget_SendBreak() function to ↵Dean
XPROGTarget_SendIdle(), as it is sending idle bits and not break bits. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1583 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-16Fixed AVRISP-MKII clone project not starting the target's program ↵Dean
automatically after exiting TPI programming mode. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1582 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-16Added new XCK_RESCUE_CLOCK_ENABLE compile time option to the AVRISP-MKII ↵Dean
clone programmer project (thanks to Tom Light). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1580 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-14Second patch to fix incorrect PDI/TPI programming speed.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1578 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-12Fixed PDI/TPI programming speed of ~250KHz in the AVRISP-MKII Clone project, ↵Dean
instead of the desired 500KHz. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1577 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-28Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean
redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1541 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-13Clean up excessive whitespace at the end of each line using the wspurify ↵Dean
tool made by Laszlo Monda git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1524 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-13Remove the timeout period extension code from the AVRISP project, as no ↵Dean
single command should ever exceed the maximum timeout period. Extend timeout period to 1 second per command, so that an accidental timeout will never occur. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1385 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-25Make loops in AVRISP-MKII Clone project's XPROG protocol infinite rather ↵Dean
than looping on the timeout value, as this is already checked inside the loop anyway. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1353 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-08Add svn:eol-style property to source files, so that the line endings are ↵Dean
correctly converted to the target system's native end of line style. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1248 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-04Removed software PDI/TPI emulation from the AVRISP-MKII clone project, as it ↵Dean
was very buggy. PDI and TPI must now be implemented via seperate headers instead of the one unified ISP/TPI/PDI header. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1234 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-03Added new ENDPOINT_*_BusSuspended error code to the Endpoint function, so ↵Dean
that the stream functions early-abort if the bus is suspended before or during a transfer. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1230 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-02Switch back to C based timeout ISR in the AVRISP project - assembly version ↵Dean
was failing, and only one or two cycles could be shaved off the compiler generated code. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1228 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-02Change AVRISP project's timeout to be interrupt based again, but make the ↵Dean
interrupt itself interruptable and use a seperate assembly file to hand-optimize the ISR code. Removed the cast to uint16_t on the set baud rate in the USBtoSerial project, so that the higher >1M baud rates can be selected (thanks to Steffan). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1227 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-30Make sure that long reads are aborted early if the connection times out ↵Dean
while waiting on more bytes in the AVRISP MKII clone project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1226 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-30Make sure that the NVM bus/controller busy waits in the AVRISP MKII clone ↵Dean
project abort properly if a timeout occurs while waiting for a response. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1225 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-28Make AVRISP-MKII clone project's software PDI/TPI mode more robust by ↵Dean
keeping track of timeouts while waiting for a Tx/Rx to finish. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1218 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-17Remove redundant check in the software PDI programming code of the AVRISP ↵Dean
project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1169 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-17Software PDI mode breaks unless the software USART has 100 cycles between bits.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1168 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-16Don't enable the pullup on the target /RESET line in the AVRISP project for ↵Dean
PDI mode - clearing the XMEGA's reset control register twice is enough to release it from reset. Possible silicon bug, since the official Atmel programmers have the same issue. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1166 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-16Fixed PDI programming mode in the AVRISP programmer project not exiting ↵Dean
programming mode correctly (clear target Reset key twice, set /RESET pin to pullup). Add newlines to the MIDI event printf() statements in the MIDI host demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1165 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-23Fixed software PDI/TPI programming mode in the AVRISP project not correctly ↵Dean
toggling just the clock pin. Fix broken AVR8 Serial peripheral driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1150 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-21Oops - need to revert changes made to ease testing of the software PDI ↵Dean
programming mode. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1143 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-21Remove dual ISR for software PDI mode, use a single ISR instead to reduce ↵Dean
code complexity. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1142 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-21More fixes to the AVRISP command timeout system so that it should no longer ↵Dean
lock up while processing command no matter what the conditions. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1141 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-19AVRISP programmer project now has a more robust timeout system, allowing for ↵Dean
a doubling of the software USART speed for PDI and TPI programming. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1138 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-31Use _delay_us() function in the XPROGTarget.c file to ensure timing ↵Dean
requirements are met, rather than a fixed number of NOPs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1087 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-31Oops - PDI handshake delay was too long, causing the device's /RESET ↵Dean
functionality to be re-enabled. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1086 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-29Fix TPI communications in the AVRISP project when bit-banged USART mode is ↵Dean
selected. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1081 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-27Ensure TPI enable timing requirements are met in AVRISP-MKII programmer. ↵Dean
Remove invalid code in the TPI read/write functions. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1070 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-27Manually pull PDI clock pin high for 1ms before disabling PDI mode in the ↵Dean
AVRISP-MKII project, to ensure that the PDI bus is disabled in the target and /RESET functionality restored. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1069 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-25Minor code cleanups, remove TemperatureDataLogger host application's Visual ↵Dean
Studio Solution files, add LibHIDNet license files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1059 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-06Update Doxygen configuration files to the latest Doxygen version.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1039 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-05Added support to the MIDI Class drivers for packed data, where multiple MIDI ↵Dean
events are packed into a single USB packet. Added new MIDI Class driver flush routines to override packing behaviour. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1038 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-30Update copyright year to 2010.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1032 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-29Reduced guard bit time in the AVRISP project PDI/TPI protocols to reduce the ↵Dean
time needed to reverse the data communication direction. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1027 d5102386-fcda-11dd-9fdb-3debd5008f28