projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make Low Level host demos use void pointers for the configuration descriptor, to...
[pub/USBasp.git]
/
Projects
/
AVRISP
/
AVRISP.c
diff --git
a/Projects/AVRISP/AVRISP.c
b/Projects/AVRISP/AVRISP.c
index
d4ae910
..
44b8356
100644
(file)
--- a/
Projects/AVRISP/AVRISP.c
+++ b/
Projects/AVRISP/AVRISP.c
@@
-34,9
+34,6
@@
* the project and is responsible for the initial application hardware configuration.
\r
*/
\r
\r
* 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
#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
{
\r
SetupHardware();
\r
\r
- V2Params_Load
EEPROM
ParamValues();
\r
+ V2Params_Load
NonVolatile
ParamValues();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
\r
@@
-54,11
+51,8
@@
int main(void)
{
Process_AVRISP_Commands();
\r
\r
{
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
USB_USBTask();
\r
}
\r
}
\r
@@
-84,7
+78,7
@@
void SetupHardware(void)
ADC_StartReading(VTARGET_ADC_CHANNEL | ADC_RIGHT_ADJUSTED | ADC_REFERENCE_AVCC);
\r
#endif
\r
\r
ADC_StartReading(VTARGET_ADC_CHANNEL | ADC_RIGHT_ADJUSTED | ADC_REFERENCE_AVCC);
\r
#endif
\r
\r
- /* Millisecond timer initialization for timeout
checking
*/
\r
+ /* Millisecond timer initialization for timeout
s and delays
*/
\r
OCR0A = ((F_CPU / 64) / 1000);
\r
TCCR0A = (1 << WGM01);
\r
TCCR0B = ((1 << CS01) | (1 << CS00));
\r
OCR0A = ((F_CPU / 64) / 1000);
\r
TCCR0A = (1 << WGM01);
\r
TCCR0B = ((1 << CS01) | (1 << CS00));
\r