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: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
Diff: SysMngmt.cpp
- Revision:
- 30:91af74a299e1
- Parent:
- 24:f58a3c0071c3
- Child:
- 31:7eaa5e881b56
--- a/SysMngmt.cpp Fri Nov 07 21:26:46 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-#include "mbed.h"
-#include "rtos.h"
-#include "IOobjects.h"
-#include "SerialDiagnostics.h"
-
-int main() {
- wdt.kick(); // Kick the watchdog timer
- pc.baud(921600);
- pc.printf("\r\n\r\nPCM Reset\r\n");
-
- // Did a watchdog reset occur since last power cycle?
- if (wdt.checkFlag()) {
- pc.printf("Watchdog Reset\r\n");
- }
-
- Thread serialThread(SerialDiagnostics::thread_serialOut, 0, osPriorityNormal, 6000);
-
- while(1) {
- wdt.kick();
- }
-}
