Burn fuse for external crystal at 16K CK and 65ms
This commit is contained in:
15
src/main.c
15
src/main.c
@@ -57,6 +57,16 @@ static int Init(void)
|
||||
|
||||
Info("Initializing...");
|
||||
|
||||
// FIXME: Something is wrong here:
|
||||
// - AVRDUDE sometimes fails to verify flash.
|
||||
// - UART sometimes stops working.
|
||||
// - External crystal problems?
|
||||
// - Power supply problems?
|
||||
// - Wrong fuses? Unlikely.
|
||||
// - Bootloader problems?
|
||||
|
||||
return 0;
|
||||
|
||||
// The watchdog timer is clocked from a separate
|
||||
// on-chip oscillator which runs at 1 MHz. Eight
|
||||
// different clock cycle periods can be selected
|
||||
@@ -232,10 +242,13 @@ int main(void)
|
||||
|
||||
for (;;) {
|
||||
WDT_Reset();
|
||||
Update();
|
||||
Info("UPDATE");
|
||||
continue;
|
||||
// Update();
|
||||
WDT_Reset();
|
||||
Sleep(1000);
|
||||
}
|
||||
|
||||
UNUSED(Update);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user