Fixed AVRISP V2 Protocol handler for the READ_FLASH_ISP and READ_EEPROM_ISP handler...
[pub/lufa.git] / Projects / Incomplete / AVRISP / AVRISP.c
index 0b10124..403db31 100644 (file)
  *  the project and is responsible for the initial application hardware configuration.\r
  */\r
 \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
 /** Main program entry point. This routine contains the overall program flow, including initial\r
@@ -44,8 +50,6 @@ int main(void)
        SetupHardware();\r
 \r
        V2Params_LoadEEPROMParamValues();\r
-\r
-       printf("AVRISP-MKII Clone\r\n");\r
        \r
        LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);\r
 \r
@@ -68,10 +72,13 @@ void SetupHardware(void)
        clock_prescale_set(clock_div_1);\r
 \r
        /* Hardware Initialization */\r
-       SerialStream_Init(9600, false);\r
-       SPI_Init(0, true);\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