there's a setfuses target in the makefile now

This commit is contained in:
Stefan Rupp 2014-03-19 03:24:08 +01:00
parent 41f5eac0a6
commit 8624c085d0
2 changed files with 8 additions and 0 deletions

View File

@ -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

5
rtc.c
View File

@ -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