mbed-src updated for BMD-200 evaluation board. Just pin numbers are updated.
Dependents: mbed_blinky-bmd-200 bmd-200_accel_demo firstRig
Fork of mbed-src by
Replacement for the "mbed" or "mbed-src" library when using the BMD-200 Evaluation kit. This library only remaps the pin names (i.e. LED1 points to p0.01 instead of p0.18, etc) as used by the BMD-200 Evaluation board (select the nRF51822_mkit platform). All other code is untouched.
Diff: api/error.h
- Revision:
- 140:ca60b7a31055
- Parent:
- 25:002053b42e66
- Child:
- 228:85a676113daa
diff -r e3413eddde57 -r ca60b7a31055 api/error.h --- a/api/error.h Thu Mar 27 09:45:07 2014 +0000 +++ b/api/error.h Tue Apr 01 10:00:07 2014 +0100 @@ -53,14 +53,16 @@ * #endcode */ -#include <stdlib.h> -#include "device.h" +#include "toolchain.h" -#if DEVICE_STDIO_MESSAGES - #include <stdio.h> - #define error(...) (fprintf(stderr, __VA_ARGS__), exit(1)) -#else - #define error(...) (exit(1)) +#ifdef __cplusplus +extern "C" { +#endif + +void error(const char* format, ...); + +#ifdef __cplusplus +} #endif #endif