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.
Dependents: test-lpc1768 oldheating gps motorhome ... more
reset/restart.h
- Committer:
- andrewboyson
- Date:
- 2019-05-08
- Revision:
- 49:d056e2c5c4ee
- Child:
- 50:e90c6aaa2645
File content as of revision 49:d056e2c5c4ee:
#include <stdint.h>
#include <stdbool.h>
extern volatile int RestartZone;
extern volatile int RestartPoint;
extern void Restart(int type);
extern int RestartGetLastZone (void);
extern int RestartGetLastCause(void);
extern int RestartGetLastPoint(void);
extern void RestartInit (void);
extern void RestartCauseToString(int type, int size, char* text);
#define RESTART_CAUSE_RESET_BUTTON 0
#define RESTART_CAUSE_SOFTWARE_RESET 1
#define RESTART_CAUSE_HARD_FAULT 2
#define RESTART_CAUSE_DEFAULT_HANDLER 3
#define RESTART_CAUSE_INVALID_DATA 4
extern void RestartZoneToString(int type, int size, char* text);
#define RESTART_ZONE_NONE 0
#define RESTART_ZONE_INIT 1
#define RESTART_ZONE_NET 2
#define RESTART_ZONE_CLOCK 3
#define RESTART_ZONE_LOG 4
#define RESTART_ZONE_LPC1768 5
#define RESTART_ZONE_DERIVED 10