Prusa-Firmware-MMU/src/hal/avr/cpu.cpp

20 lines
353 B
C++

#include "../cpu.h"
#include <avr/interrupt.h>
#include "../watchdog.h"
namespace hal {
namespace cpu {
void Init() {
}
void Reset() {
cli();
watchdog::Enable(watchdog::configuration::compute(0)); //quickest watchdog reset
for (;;)
; //endless loop while waiting for the watchdog to reset
}
} // namespace CPU
} // namespace hal