diff --git a/Makefile b/Makefile index ff3c4fb..e839291 100644 --- a/Makefile +++ b/Makefile @@ -53,3 +53,6 @@ bin: $(PRG).bin prg: $(PRG).bin python2 megaHidProg.py -C -c 1000 -t 4 -b $(PRG).bin +setfuses: + python2 megaHidProg.py -C -S -c 125 -L be -H d9 -E FC + diff --git a/rtc.c b/rtc.c index 5076b81..19881de 100644 --- a/rtc.c +++ b/rtc.c @@ -22,6 +22,11 @@ ISR(TIMER2_OVF_vect) { return; } +/* + * initialize the RTC module + * this resets the internal time to the value given in the + * rtc_time parameter + */ void rtc_init(uint32_t rtc_time) { // Stop all interrupts