Make Low Level host demos use void pointers for the configuration descriptor, to...
[pub/USBasp.git] / Projects / AVRISP / AVRISP.c
index ce16aeb..44b8356 100644 (file)
@@ -34,9 +34,6 @@
  *  the project and is responsible for the initial application hardware configuration.\r
  */\r
 \r
-// TODO: Add in software SPI for lower programming speeds below 125KHz\r
-// TODO: Add reversed target connector checks\r
-\r
 #include "AVRISP.h"\r
 \r
 /** Main program entry point. This routine contains the overall program flow, including initial\r
@@ -46,7 +43,7 @@ int main(void)
 {\r
        SetupHardware();\r
 \r
-       V2Params_LoadEEPROMParamValues();\r
+       V2Params_LoadNonVolatileParamValues();\r
        \r
        LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);\r
 \r
@@ -54,11 +51,8 @@ int main(void)
        {
                Process_AVRISP_Commands();\r
                \r
-               #if defined(ADC)\r
-               /* Update VTARGET parameter with the latest ADC conversion of VTARGET on supported AVR models */\r
-               V2Params_SetParameterValue(PARAM_VTARGET, ((5 * 10 * ADC_GetResult()) / 1024));\r
-               #endif
-\r
+               V2Params_UpdateParamValues();\r
+               \r
                USB_USBTask();\r
        }\r
 }\r