Andrew Boyson / lpc1768

Dependents:   test-lpc1768 oldheating gps motorhome ... more

Committer:
andrewboyson
Date:
Wed May 08 12:13:37 2019 +0000
Revision:
49:d056e2c5c4ee
Child:
50:e90c6aaa2645
Sorted out reset module to properly read the RSID register

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 49:d056e2c5c4ee 1 #include <stdint.h>
andrewboyson 49:d056e2c5c4ee 2 #include <stdbool.h>
andrewboyson 49:d056e2c5c4ee 3
andrewboyson 49:d056e2c5c4ee 4 extern volatile int RestartZone;
andrewboyson 49:d056e2c5c4ee 5 extern volatile int RestartPoint;
andrewboyson 49:d056e2c5c4ee 6
andrewboyson 49:d056e2c5c4ee 7 extern void Restart(int type);
andrewboyson 49:d056e2c5c4ee 8
andrewboyson 49:d056e2c5c4ee 9 extern int RestartGetLastZone (void);
andrewboyson 49:d056e2c5c4ee 10 extern int RestartGetLastCause(void);
andrewboyson 49:d056e2c5c4ee 11 extern int RestartGetLastPoint(void);
andrewboyson 49:d056e2c5c4ee 12
andrewboyson 49:d056e2c5c4ee 13 extern void RestartInit (void);
andrewboyson 49:d056e2c5c4ee 14
andrewboyson 49:d056e2c5c4ee 15 extern void RestartCauseToString(int type, int size, char* text);
andrewboyson 49:d056e2c5c4ee 16 #define RESTART_CAUSE_RESET_BUTTON 0
andrewboyson 49:d056e2c5c4ee 17 #define RESTART_CAUSE_SOFTWARE_RESET 1
andrewboyson 49:d056e2c5c4ee 18 #define RESTART_CAUSE_HARD_FAULT 2
andrewboyson 49:d056e2c5c4ee 19 #define RESTART_CAUSE_DEFAULT_HANDLER 3
andrewboyson 49:d056e2c5c4ee 20 #define RESTART_CAUSE_INVALID_DATA 4
andrewboyson 49:d056e2c5c4ee 21
andrewboyson 49:d056e2c5c4ee 22 extern void RestartZoneToString(int type, int size, char* text);
andrewboyson 49:d056e2c5c4ee 23 #define RESTART_ZONE_NONE 0
andrewboyson 49:d056e2c5c4ee 24 #define RESTART_ZONE_INIT 1
andrewboyson 49:d056e2c5c4ee 25 #define RESTART_ZONE_NET 2
andrewboyson 49:d056e2c5c4ee 26 #define RESTART_ZONE_CLOCK 3
andrewboyson 49:d056e2c5c4ee 27 #define RESTART_ZONE_LOG 4
andrewboyson 49:d056e2c5c4ee 28 #define RESTART_ZONE_LPC1768 5
andrewboyson 49:d056e2c5c4ee 29 #define RESTART_ZONE_DERIVED 10