Finished preliminary AVRISP project - all V2 protocol commands now work correctly...
[pub/lufa.git] / Projects / Incomplete / AVRISP / AVRISP.c
index f3634fd..403db31 100644 (file)
  *  the project and is responsible for the initial application hardware configuration.\r
  */\r
 \r
-// TODO: Add reversed target connector checks\r
+// TODO: Fix PROGRAM FLASH and PROGRAM EEPROM command processing\r
 // TODO: Add in software SPI for lower programming speeds below 125KHz\r
 // TODO: Add in VTARGET detection\r
+// TODO: Add reversed target connector checks\r
+// TODO: Add Doxygen comments to functions\r
 \r
 #include "AVRISP.h"\r
 \r
@@ -72,6 +74,11 @@ void SetupHardware(void)
        /* Hardware Initialization */\r
        LEDs_Init();\r
        USB_Init();\r
+\r
+       /* Millisecond timer initialization for timeout checking */\r
+       OCR0A  = ((F_CPU / 64) / 1000);\r
+       TCCR0A = (1 << WGM01);\r
+       TCCR0B = ((1 << CS01) | (1 << CS00));\r
 }\r
 \r
 /** Event handler for the library USB Connection event. */\r