uc: fix two typos in the comments
This commit is contained in:
parent
54283e09b8
commit
48860d6508
|
@ -171,7 +171,7 @@ void WDT_off(void) {
|
||||||
|
|
||||||
// enable WDT
|
// enable WDT
|
||||||
void WDT_on(void) {
|
void WDT_on(void) {
|
||||||
// enable the watchdog timer (1s)
|
// enable the watchdog timer (2s)
|
||||||
wdt_enable(WDTO_2S);
|
wdt_enable(WDTO_2S);
|
||||||
// set watchdog interrupt enable flag
|
// set watchdog interrupt enable flag
|
||||||
WDTCSR |= (1<<WDIE);
|
WDTCSR |= (1<<WDIE);
|
||||||
|
@ -229,7 +229,7 @@ void setup()
|
||||||
// Timer2 set to CTC mode (DS p.146, 154, 157)
|
// Timer2 set to CTC mode (DS p.146, 154, 157)
|
||||||
TCCR2A |= 1<<WGM21;
|
TCCR2A |= 1<<WGM21;
|
||||||
#if DBG > 0
|
#if DBG > 0
|
||||||
// Toogle pin OC2A=PB3 on compare match
|
// Toggle pin OC2A=PB3 on compare match
|
||||||
TCCR2A |= 1<<COM2A0;
|
TCCR2A |= 1<<COM2A0;
|
||||||
#endif
|
#endif
|
||||||
// Set PB3 as output pin
|
// Set PB3 as output pin
|
||||||
|
|
Loading…
Reference in New Issue