Change spinloop in the AVRISP project Unknown V2 Protocol Command handler to use...
[pub/USBasp.git] / Projects / Unfinished / AVRISP / AVRISP.c
index 0491102..0b10124 100644 (file)
@@ -42,7 +42,9 @@
 int main(void)\r
 {\r
        SetupHardware();\r
-       \r
+\r
+       V2Params_LoadEEPROMParamValues();\r
+\r
        printf("AVRISP-MKII Clone\r\n");\r
        \r
        LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);\r
@@ -67,6 +69,7 @@ void SetupHardware(void)
 \r
        /* Hardware Initialization */\r
        SerialStream_Init(9600, false);\r
+       SPI_Init(0, true);\r
        LEDs_Init();\r
        USB_Init();\r
 }\r
@@ -98,11 +101,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
        }\r
 }\r
 \r
-void EVENT_USB_Device_UnhandledControlRequest(void)\r
-{\r
-       printf("CONTROL REQUEST\r\n");\r
-}\r
-
+/** Processes incomming V2 Protocol commands from the host, returning a response when required. */
 void Process_AVRISP_Commands(void)
 {
        /* Device must be connected and configured for the task to run */\r