File tree 1 file changed +7
-7
lines changed
examples/11.ArduinoISP/ArduinoISP
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 55
55
56
56
// With an Genuino/Uno board, uncomment following line to generate a 4 MHz clock
57
57
// signal on pin 3 (only available on Uno / ATmega*8)
58
- //
58
+ //
59
59
// Can be useful to recover an AVR chip with fuses setup for an external clock
60
60
61
61
// #define ENABLE_CLOCK_GEN
62
62
63
63
#ifdef ENABLE_CLOCK_GEN
64
64
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
68
68
69
69
#endif
70
70
@@ -240,7 +240,7 @@ static BitBangedSPI SPI;
240
240
#ifdef CLOCK_GEN_ENABLED
241
241
242
242
// ouput a 4MHz clock on pin 3 (Uno) using fast PWM
243
- void setup_clock_gen (){
243
+ void setup_clock_gen () {
244
244
pinMode (3 , OUTPUT);
245
245
TCCR2A = 0x23 ;
246
246
TCCR2B = 0x09 ;
@@ -260,9 +260,9 @@ void setup() {
260
260
pinMode (LED_HB, OUTPUT);
261
261
pulse (LED_HB, 2 );
262
262
263
- #ifdef CLOCK_GEN_ENABLED
263
+ #ifdef CLOCK_GEN_ENABLED
264
264
setup_clock_gen ();
265
- #endif
265
+ #endif
266
266
267
267
}
268
268
You can’t perform that action at this time.
0 commit comments