From 8624c085d0bcc3b4076c1e59be0afb9b922e09dd Mon Sep 17 00:00:00 2001 From: Stefan Rupp Date: Wed, 19 Mar 2014 03:24:08 +0100 Subject: [PATCH] there's a setfuses target in the makefile now --- Makefile | 3 +++ rtc.c | 5 +++++ 2 files changed, 8 insertions(+) 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