Monitor motorhome leisure battery and provide simple control of habitation
Dependencies: net lpc1768 crypto clock web fram log
Diff: main/main.c
- Revision:
- 2:5229cab71d69
- Parent:
- 0:b843d647695c
- Child:
- 3:b96c6f6bbffc
--- a/main/main.c Tue Jan 19 19:01:14 2021 +0000 +++ b/main/main.c Wed Feb 10 17:26:07 2021 +0000 @@ -15,6 +15,8 @@ #include "restart.h" #include "restart-this.h" #include "crypto.h" +#include "i2c1.h" +#include "lcd.h" int main() { @@ -35,6 +37,8 @@ HeatingInit(); //Loads of FRAM if ( SettingsInit()) goto end; if ( ValuesInit()) goto end; + I2C1Init(); + LcdInit(); while (1) { RestartZone = RESTART_ZONE_LOG; LogMain(); @@ -46,6 +50,8 @@ RestartZone = RESTART_ZONE_HEATING; HeatingMain(); RestartZone = RESTART_ZONE_LPC1768; Lpc1768Main(); RestartZone = RESTART_ZONE_CRYPTO; CryptoMain(); + I2C1Main(); + LcdMain(); } end: