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/values.c
- Revision:
- 20:904a4f043f2c
- Parent:
- 13:2ca12dd42e91
- Child:
- 28:bb55def47737
diff -r 969f7be69225 -r 904a4f043f2c heating/values.c --- a/heating/values.c Mon Jan 07 08:15:23 2019 +0000 +++ b/heating/values.c Tue Jan 08 14:08:33 2019 +0000 @@ -5,7 +5,7 @@ #include "tftp.h" #include "dns.h" #include "fram.h" -#include "clock.h" +#include "clk.h" #include "mstimer.h" #include "clktm.h" #include "ds18b20.h" @@ -18,7 +18,7 @@ bool ValuesTrace = false; static char serverName[DNS_MAX_LABEL_LENGTH+1]; static int iServerName; -static char fileName[DNS_MAX_LABEL_LENGTH+1]; static int iFileName; +static char fileName[DNS_MAX_LABEL_LENGTH+1]; static int iFileName; static int32_t writeSize; static int iWriteSize; static int32_t readInterval; static int iReadInterval; static int64_t startTime; static int iStartTime; @@ -103,7 +103,7 @@ record |= BoilerCall << 4; record |= BoilerPump << 5; //AAAB BBCC CDDD 003F - if (count == 0) setStartTime(ClockTime()); + if (count == 0) setStartTime(ClkNowTime()); FramWrite(iData + 8 * count, 8, &record); setCount(count + 1);