* 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
SetupHardware();\r
\r
V2Params_LoadEEPROMParamValues();\r
-\r
- printf("AVRISP-MKII Clone\r\n");\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);\r
\r
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