| | |
| | | #define USE_USER_ERROR_LIST 0 |
| | | #endif |
| | | |
| | | #ifndef USE_COMMAND_TAGS |
| | | #define USE_COMMAND_TAGS 1 |
| | | #endif |
| | | |
| | | #ifndef USE_DEPRECATED_FUNCTIONS |
| | | #define USE_DEPRECATED_FUNCTIONS 1 |
| | | #endif |
| | | |
| | | /* Compiler specific */ |
| | | /* RealView/Keil ARM Compiler, e.g. Cortex-M CPUs */ |
| | | #if defined(__CC_ARM) |
| | |
| | | #endif |
| | | |
| | | #if HAVE_DTOSTRE |
| | | #define SCPIDEFINE_floatToStr(v, s, l) strlen(dtostre((double)(v), (s), 6, DTOSTR_PLUS_SIGN | DTOSTR_ALWAYS_SIGN | DTOSTR_UPPERCASE)) |
| | | #else |
| | | #define SCPIDEFINE_floatToStr(v, s, l) snprintf((s), (l), "%g", (v)) |
| | | #endif |
| | | |
| | | #if HAVE_DTOSTRE |
| | | #define SCPIDEFINE_doubleToStr(v, s, l) strlen(dtostre((v), (s), 6, DTOSTR_PLUS_SIGN | DTOSTR_ALWAYS_SIGN | DTOSTR_UPPERCASE)) |
| | | #else |
| | | #define SCPIDEFINE_doubleToStr(v, s, l) snprintf((s), (l), "%lg", (v)) |