File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
examples/11.ArduinoISP/ArduinoISP Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 5555
5656// With an Genuino/Uno board, uncomment following line to generate a 4 MHz clock
5757// signal on pin 3 (only available on Uno / ATmega*8)
58- //
58+ //
5959// Can be useful to recover an AVR chip with fuses setup for an external clock
6060
6161// #define ENABLE_CLOCK_GEN
6262
6363#ifdef ENABLE_CLOCK_GEN
6464
65- #if defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega88__)
66- #define CLOCK_GEN_ENABLED
67- #endif
65+ #if defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega88__)
66+ #define CLOCK_GEN_ENABLED
67+ #endif
6868
6969#endif
7070
@@ -240,7 +240,7 @@ static BitBangedSPI SPI;
240240#ifdef CLOCK_GEN_ENABLED
241241
242242// ouput a 4MHz clock on pin 3 (Uno) using fast PWM
243- void setup_clock_gen (){
243+ void setup_clock_gen () {
244244 pinMode (3 , OUTPUT);
245245 TCCR2A = 0x23 ;
246246 TCCR2B = 0x09 ;
@@ -260,9 +260,9 @@ void setup() {
260260 pinMode (LED_HB, OUTPUT);
261261 pulse (LED_HB, 2 );
262262
263- #ifdef CLOCK_GEN_ENABLED
263+ #ifdef CLOCK_GEN_ENABLED
264264 setup_clock_gen ();
265- #endif
265+ #endif
266266
267267}
268268
You can’t perform that action at this time.
0 commit comments