Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file
Dependencies: net 1-wire lpc1768 crypto clock web fram log
/media/uploads/andrewboyson/heating.sch
/media/uploads/andrewboyson/heating.brd
/media/uploads/andrewboyson/eagle.epf
Diff: heating/program.c
- Revision:
- 20:904a4f043f2c
- Parent:
- 0:3c04f4b47041
- Child:
- 47:229338b3adcb
--- a/heating/program.c Mon Jan 07 08:15:23 2019 +0000 +++ b/heating/program.c Tue Jan 08 14:08:33 2019 +0000 @@ -1,11 +1,12 @@ #include <stdint.h> #include <stdlib.h> -#include "rtc.h" #include <stdbool.h> -#include "clock.h" -#include "log.h" -#include "fram.h" +#include "rtc.h" +#include "clktime.h" +#include "clk.h" +#include "log.h" +#include "fram.h" #define PROGRAMS 3 #define TRANSITIONS 4 @@ -156,10 +157,10 @@ static bool readProgramTimerOutput() { - if (!ClockIsSet()) return 0; + if (!ClkTimeIsSet()) return 0; struct tm tm; - ClockTmLocal(&tm); + ClkNowTmLocal(&tm); int dayOfWeek = tm.tm_wday; int minutesNow = tm.tm_hour * 60 + tm.tm_min;