 
   // See avr datasheets, chapter "SERIAL_PRG Programming Algorithm":
 
-  // Pulse RESET after SCK is low:
-  digitalWrite(SCK, LOW);
-  delay(20); // discharge SCK, value arbitrally chosen
+  // Pulse RESET after PIN_SCK is low:
+  digitalWrite(PIN_SCK, LOW);
+  delay(20); // discharge PIN_SCK, value arbitrally chosen
   reset_target(false);
   // Pulse must be minimum 2 target CPU clock cycles
   // so 100 usec is ok for CPU speeds above 20KHz

  SPI.end();
  // We're about to take the target out of reset
  // so configure SPI pins as input
  pinMode(MOSI, INPUT);
  pinMode(SCK, INPUT);
  reset_target(false);
  pinMode(RESET, INPUT);
  pmode = 0;


#endif

// Configure which pins to use:

// The standard pin configuration.
#ifndef ARDUINO_HOODLOADER2 
