File printf_config.h
FileList > base > config > printf_config.h
Go to the source code of this file.
#include <lt_config.h>
Public Functions
Type | Name |
---|---|
void | putchar_p (char c, unsigned long port) |
Macros
Type | Name |
---|---|
define | PRINTF_HAS_DISABLE 1 |
define | WRAP_DISABLE_CHECK (name) |
define | WRAP_DISABLE_DECL (name) |
define | WRAP_DISABLE_DEF (name) |
define | WRAP_PRINTF (name) |
define | WRAP_SNPRINTF (name) |
define | WRAP_SPRINTF (name) |
define | WRAP_VPRINTF (name) |
define | WRAP_VSNPRINTF (name) |
define | WRAP_VSPRINTF (name) |
define | printf_ __wrap_printf |
define | snprintf_ __wrap_snprintf |
define | sprintf_ __wrap_sprintf |
define | vprintf_ __wrap_vprintf |
define | vsnprintf_ __wrap_vsnprintf |
define | vsprintf_ __wrap_vsprintf |
Public Functions Documentation
function putchar_p
Macro Definition Documentation
define PRINTF_HAS_DISABLE
define WRAP_DISABLE_CHECK
define WRAP_DISABLE_DECL
#define WRAP_DISABLE_DECL (
name
) void __wrap_##name##_disable() {} \
void __wrap_##name##_enable() {} \
void __wrap_##name##_set(unsigned char disabled) {} \
unsigned char __wrap_##name##_get() { \
return LT_UART_SILENT_ALL; \
}
define WRAP_DISABLE_DEF
#define WRAP_DISABLE_DEF (
name
) extern void __wrap_##name##_disable(); \
extern void __wrap_##name##_enable(); \
extern void __wrap_##name##_set(unsigned char disabled); \
extern unsigned char __wrap_##name##_get();
define WRAP_PRINTF
#define WRAP_PRINTF (
name
) WRAP_DISABLE_DECL(name) \
int __wrap_##name(const char *format, ...) { \
va_list va; \
va_start(va, format); \
const int ret = vprintf(format, va); \
va_end(va); \
return ret; \
}
define WRAP_SNPRINTF
#define WRAP_SNPRINTF (
name
) int __wrap_##name(char *s, size_t count, const char *format, ...) { \
va_list va; \
va_start(va, format); \
const int ret = vsnprintf(s, count, format, va); \
va_end(va); \
return ret; \
}
define WRAP_SPRINTF
#define WRAP_SPRINTF (
name
) int __wrap_##name(char *s, const char *format, ...) { \
va_list va; \
va_start(va, format); \
const int ret = vsprintf(s, format, va); \
va_end(va); \
return ret; \
}
define WRAP_VPRINTF
#define WRAP_VPRINTF (
name
) WRAP_DISABLE_DECL(name) \
int __wrap_##name(const char *format, va_list arg) { \
return vprintf(format, arg); \
}
define WRAP_VSNPRINTF
#define WRAP_VSNPRINTF (
name
) int __wrap_##name(char *s, size_t count, const char *format, va_list arg) { \
return vsnprintf(s, count, format, arg); \
}
define WRAP_VSPRINTF
#define WRAP_VSPRINTF (
name
) int __wrap_##name(char *s, const char *format, va_list arg) { \
return vsprintf(s, format, arg); \
}
define printf_
define snprintf_
define sprintf_
define vprintf_
define vsnprintf_
define vsprintf_
The documentation for this class was generated from the following file cores/common/base/config/printf_config.h