The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: platform/mbed_interface.h
- Revision:
- 145:64910690c574
- Parent:
- 128:9bcdf88f62b0
--- a/platform/mbed_interface.h Thu Jun 08 14:53:05 2017 +0100 +++ b/platform/mbed_interface.h Wed Jun 21 17:31:38 2017 +0100 @@ -113,16 +113,28 @@ void mbed_die(void); /** Print out an error message. This is typically called when - * hanlding a crash. + * handling a crash. + * + * @note Synchronization level: Interrupt safe * - * @Note Synchronization level: Interrupt safe + * @param format C string that contains data stream to be printed. + * Code snippets below show valid format. + * + * @code + * mbed_error_printf("Failed: %s, file: %s, line %d \n", expr, file, line); + * @endcode + * */ 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 + * @note Synchronization level: Interrupt safe + * + * @param format C string that contains data stream to be printed. + * @param arg Variable arguments list + * */ void mbed_error_vfprintf(const char * format, va_list arg);