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
Diff: reset/restart.h
- Revision:
- 50:e90c6aaa2645
- Parent:
- 49:d056e2c5c4ee
- Child:
- 60:b4f337685ec4
--- a/reset/restart.h Wed May 08 12:13:37 2019 +0000 +++ b/reset/restart.h Thu May 09 07:48:38 2019 +0000 @@ -12,14 +12,14 @@ extern void RestartInit (void); -extern void RestartCauseToString(int type, int size, char* text); +extern const char* RestartGetCauseString(void); #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); +extern const char* RestartGetZoneString(void); #define RESTART_ZONE_NONE 0 #define RESTART_ZONE_INIT 1 #define RESTART_ZONE_NET 2