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.
Fork of DDRO_Farrari by
panic.cpp
- Committer:
- josewang
- Date:
- 2014-02-25
- Revision:
- 10:95e9932f7990
File content as of revision 10:95e9932f7990:
/* * Written by Zimin Wang * */ #include "mbed.h" #include "pinout.h" #include "power.h" #include "panic.h" #include "basic_io.h" // When error happens, print error message, power down the core and terminate void panic(const char *format, ...) { // print error message va_list args; va_start(args, format); mbed_vprintf(format, args); va_end(args); wait(2); power_down(); exit(1); }