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: net 1-wire lpc1768 crypto clock web fram log
Diff: main/main.c
- Revision:
- 59:593ed054a439
- Parent:
- 58:d968191f46f2
- Child:
- 74:8228f0297227
--- a/main/main.c Tue May 07 07:42:24 2019 +0000
+++ b/main/main.c Thu May 09 07:49:30 2019 +0000
@@ -12,12 +12,12 @@
#include "web.h"
#include "settings.h"
#include "values.h"
-#include "fault.h"
-#include "fault-this.h"
+#include "restart.h"
+#include "restart-this.h"
int main()
{
- FaultZone = FAULT_ZONE_INIT;
+ RestartZone = RESTART_ZONE_INIT;
PeriphsInit();
Lpc1768Init();
LedInit();
@@ -35,14 +35,14 @@
if ( ValuesInit()) goto end;
while (1)
{
- FaultZone = FAULT_ZONE_LOG; LogMain();
- FaultZone = FAULT_ZONE_CLOCK; ClkMain();
- FaultZone = FAULT_ZONE_NET; NetMain();
- FaultZone = FAULT_ZONE_VALUES; ValuesMain();
- FaultZone = FAULT_ZONE_ONE_WIRE; if (OneWireMain()) break;
- FaultZone = FAULT_ZONE_DEVICE; if ( DeviceMain()) break;
- FaultZone = FAULT_ZONE_HEATING; HeatingMain();
- FaultZone = FAULT_ZONE_LPC1768; Lpc1768Main();
+ RestartZone = RESTART_ZONE_LOG; LogMain();
+ RestartZone = RESTART_ZONE_CLOCK; ClkMain();
+ RestartZone = RESTART_ZONE_NET; NetMain();
+ RestartZone = RESTART_ZONE_VALUES; ValuesMain();
+ RestartZone = RESTART_ZONE_ONE_WIRE; if (OneWireMain()) break;
+ RestartZone = RESTART_ZONE_DEVICE; if ( DeviceMain()) break;
+ RestartZone = RESTART_ZONE_HEATING; HeatingMain();
+ RestartZone = RESTART_ZONE_LPC1768; Lpc1768Main();
}
end: