mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 08:47:49 +01:00
change WDT to 500ms
This commit is contained in:
@@ -24,6 +24,9 @@ board_hardware.uart = no_bootloader
|
|||||||
board_hardware.bod = 2.7v
|
board_hardware.bod = 2.7v
|
||||||
|
|
||||||
; specify fuses because platformio burns wrong ones when uploading
|
; specify fuses because platformio burns wrong ones when uploading
|
||||||
|
; actually this doesn't help?
|
||||||
|
; for whatever reason avrdude gives an error if you don't upload
|
||||||
|
; just after flashing fuses
|
||||||
board_fuse.lfuse = 0xf7
|
board_fuse.lfuse = 0xf7
|
||||||
board_fuse.hfuse = 0xd7
|
board_fuse.hfuse = 0xd7
|
||||||
board_fuse.efuse = 0xfd
|
board_fuse.efuse = 0xfd
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ void setup() {
|
|||||||
OCR2A = 250;
|
OCR2A = 250;
|
||||||
TCCR2A |= (1 << WGM20) | (1 << CS21);
|
TCCR2A |= (1 << WGM20) | (1 << CS21);
|
||||||
TIMSK2 |= (1 << OCIE2A);
|
TIMSK2 |= (1 << OCIE2A);
|
||||||
wdt_enable(WDTO_8S);
|
wdt_enable(WDTO_500MS);
|
||||||
}
|
}
|
||||||
|
|
||||||
volatile unsigned int tick = 0;
|
volatile unsigned int tick = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user