ads1115 only
Fork of mbed by
Diff: mbed_interface.h
- Revision:
- 122:f9eeca106725
- Parent:
- 66:9c8f0e3462fb
--- a/mbed_interface.h Wed May 25 16:44:06 2016 +0100 +++ b/mbed_interface.h Thu Jul 07 14:34:11 2016 +0100 @@ -16,6 +16,8 @@ #ifndef MBED_INTERFACE_H #define MBED_INTERFACE_H +#include <stdarg.h> + #include "device.h" /* Mbed interface mac address @@ -107,6 +109,20 @@ */ void mbed_die(void); +/** Print out an error message. This is typically called when + * hanlding a crash. + * + * @Note Synchronization level: Interrupt safe + */ +void mbed_error_printf(const char* format, ...); + +/** Print out an error message. Similar to mbed_error_printf + * but uses a va_list. + * + * @Note Synchronization level: Interrupt safe + */ +void mbed_error_vfprintf(const char * format, va_list arg); + #ifdef __cplusplus } #endif