Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
main.c
00001 #include "lpc1768.h" 00002 #include "periphs.h" 00003 #include "led.h" 00004 #include "clk.h" 00005 #include "log.h" 00006 #include "fram.h" 00007 #include "net.h" 00008 #include "1-wire.h" 00009 #include "1-wire-device.h" 00010 #include "heating.h" 00011 #include "settings.h" 00012 #include "web.h" 00013 #include "settings.h" 00014 #include "values.h" 00015 #include "restart.h" 00016 #include "restart-this.h" 00017 #include "crypto.h" 00018 #include "wiz.h" 00019 00020 int main() 00021 { 00022 RestartZone = RESTART_ZONE_INIT; 00023 PeriphsInit(); 00024 LedInit(); 00025 Lpc1768Init(); 00026 ClkInit(); 00027 LogInit(ClkNowTmUtc, 115200); 00028 if ( SettingsInit()) goto end; //Uses log. Fram is initialised here 00029 CryptoInit(); //Uses log 00030 NetInit(); 00031 WebInit(); 00032 OneWireInit(); 00033 DeviceInit(); 00034 HeatingInit(); 00035 if ( ValuesInit()) goto end; 00036 WizInit(); 00037 while (1) 00038 { 00039 RestartZone = RESTART_ZONE_LOG; LogMain(); 00040 RestartZone = RESTART_ZONE_CLOCK; ClkMain(); 00041 RestartZone = RESTART_ZONE_NET; NetMain(); 00042 RestartZone = RESTART_ZONE_VALUES; ValuesMain(); 00043 RestartZone = RESTART_ZONE_ONE_WIRE; if (OneWireMain()) break; 00044 RestartZone = RESTART_ZONE_DEVICE; if ( DeviceMain()) break; 00045 RestartZone = RESTART_ZONE_HEATING; HeatingMain(); 00046 RestartZone = RESTART_ZONE_LPC1768; Lpc1768Main(); 00047 RestartZone = RESTART_ZONE_CRYPTO; CryptoMain(); 00048 WizMain(); 00049 } 00050 00051 end: 00052 Led1Set(1); Led2Set(1); Led3Set(1); Led4Set(1); 00053 return 0; 00054 }
Generated on Sat Nov 12 2022 10:03:51 by
1.7.2