diff options
| author | Dean Camera <[email protected]> | 2010-01-19 05:27:58 +0000 | 
|---|---|---|
| committer | Dean Camera <[email protected]> | 2010-01-19 05:27:58 +0000 | 
| commit | 60fd0ff418566d85224f9841037ba01b77acc0d8 (patch) | |
| tree | c97d59c17a21b467c0fe0c989437c2ff9fcae5a2 /Projects/AVRISP-MKII/AVRISP.c | |
| parent | 27461546523862a3a76ee41f615f7ec2eed2195f (diff) | |
| download | qmk_firmware-60fd0ff418566d85224f9841037ba01b77acc0d8.tar.gz qmk_firmware-60fd0ff418566d85224f9841037ba01b77acc0d8.zip | |
Changed XPLAINBridge project to be both a USB to USART bridge and a PDI programmer, based on the state of a mode select pin.
Diffstat (limited to 'Projects/AVRISP-MKII/AVRISP.c')
| -rw-r--r-- | Projects/AVRISP-MKII/AVRISP.c | 15 | 
1 files changed, 1 insertions, 14 deletions
| diff --git a/Projects/AVRISP-MKII/AVRISP.c b/Projects/AVRISP-MKII/AVRISP.c index 5cb25a9850..b78923f5be 100644 --- a/Projects/AVRISP-MKII/AVRISP.c +++ b/Projects/AVRISP-MKII/AVRISP.c @@ -42,8 +42,6 @@  int main(void)
  {
  	SetupHardware();
 -
 -	V2Params_LoadNonVolatileParamValues();
  	LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
 @@ -70,18 +68,7 @@ void SetupHardware(void)  	/* Hardware Initialization */
  	LEDs_Init();
  	USB_Init();
 -
 -	#if defined(ADC)
 -	/* Initialize the ADC converter for VTARGET level detection on supported AVR models */
 -	ADC_Init(ADC_FREE_RUNNING | ADC_PRESCALE_128);
 -	ADC_SetupChannel(VTARGET_ADC_CHANNEL);
 -	ADC_StartReading(VTARGET_ADC_CHANNEL | ADC_RIGHT_ADJUSTED | ADC_REFERENCE_AVCC);
 -	#endif
 -	
 -	/* Millisecond timer initialization for managing the command timeout counter */
 -	OCR0A  = ((F_CPU / 64) / 1000);
 -	TCCR0A = (1 << WGM01);
 -	TCCR0B = ((1 << CS01) | (1 << CS00));
 +	V2Protocol_Init();
  }
  /** Event handler for the library USB Connection event. */
 | 
