X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/bff4dbe1897d8c19b4bb9807e76350465ca1f1c4..4742e95a3f8ef01715c6d5e740c4aab59d2c2b58:/Projects/Incomplete/AVRISP/AVRISP.c diff --git a/Projects/Incomplete/AVRISP/AVRISP.c b/Projects/Incomplete/AVRISP/AVRISP.c index f3634fd70..403db314e 100644 --- a/Projects/Incomplete/AVRISP/AVRISP.c +++ b/Projects/Incomplete/AVRISP/AVRISP.c @@ -34,9 +34,11 @@ * the project and is responsible for the initial application hardware configuration. */ -// TODO: Add reversed target connector checks +// TODO: Fix PROGRAM FLASH and PROGRAM EEPROM command processing // TODO: Add in software SPI for lower programming speeds below 125KHz // TODO: Add in VTARGET detection +// TODO: Add reversed target connector checks +// TODO: Add Doxygen comments to functions #include "AVRISP.h" @@ -72,6 +74,11 @@ void SetupHardware(void) /* Hardware Initialization */ LEDs_Init(); USB_Init(); + + /* Millisecond timer initialization for timeout checking */ + OCR0A = ((F_CPU / 64) / 1000); + TCCR0A = (1 << WGM01); + TCCR0B = ((1 << CS01) | (1 << CS00)); } /** Event handler for the library USB Connection event. */