X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/5acf23b25465b82e5516510ee45aa9ed15178ad5..4742e95a3f8ef01715c6d5e740c4aab59d2c2b58:/Projects/Incomplete/AVRISP/AVRISP.c diff --git a/Projects/Incomplete/AVRISP/AVRISP.c b/Projects/Incomplete/AVRISP/AVRISP.c index 0b101247f..403db314e 100644 --- a/Projects/Incomplete/AVRISP/AVRISP.c +++ b/Projects/Incomplete/AVRISP/AVRISP.c @@ -34,6 +34,12 @@ * the project and is responsible for the initial application hardware configuration. */ +// 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" /** Main program entry point. This routine contains the overall program flow, including initial @@ -44,8 +50,6 @@ int main(void) SetupHardware(); V2Params_LoadEEPROMParamValues(); - - printf("AVRISP-MKII Clone\r\n"); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); @@ -68,10 +72,13 @@ void SetupHardware(void) clock_prescale_set(clock_div_1); /* Hardware Initialization */ - SerialStream_Init(9600, false); - SPI_Init(0, true); 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. */