summaryrefslogtreecommitdiff
path: root/src/pcf_clock_driver.c
diff options
context:
space:
mode:
authorBrett Weiland <brett_weiland@bpcsapce.com>2022-09-27 16:14:28 -0500
committerBrett Weiland <brett_weiland@bpcsapce.com>2022-09-27 16:14:28 -0500
commit94304b11e7220f060dbc345de5fa1952d0465016 (patch)
treef16e84c54b27f67e089ded1175fbf8b561896b42 /src/pcf_clock_driver.c
parent7b006d6f2032ac46074d693ae59a971bee327ace (diff)
working on serial syncronization for programming eeprom
Diffstat (limited to 'src/pcf_clock_driver.c')
-rw-r--r--src/pcf_clock_driver.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/pcf_clock_driver.c b/src/pcf_clock_driver.c
index c02a934..d4a0b64 100644
--- a/src/pcf_clock_driver.c
+++ b/src/pcf_clock_driver.c
@@ -1,4 +1,6 @@
-#include <i2c.h>
+#include <util/delay.h>
+#include <stdio.h>
+#include "i2c.h"
#define CLOCK_ADDR 0x51
#ifdef FLASH_EEPROM
@@ -6,10 +8,5 @@ void flash_clock() {
i2c_write_reg(EEPROM_ADDR, 0x00, 0x58); //resets clock
i2c_write_reg(CLOCK_ADDR, 0x00, 0x40); //sets to 12 hour time
i2c_write_reg(CLOCK_ADDR, 0x01, 0x08); //sets alarm interrupts on
-
- //recieve time
-
-
}
- i2c_write_reg(CLOCK_ADDR, 0x03, 0x01); //free ram byte; says we've set the time
#endif