STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
← STM32duino documentation
Loading...
Searching...
No Matches
core_debug.h File Reference

Debug message output helpers: core_debug() and vcore_debug(). More...

#include <stdarg.h>
#include <stdio.h>

Functions

void core_debug (const char *format,...)
 Output a debug message on stderr.
 
void vcore_debug (const char *format, va_list args)
 Output a debug message on stderr from a va_list.
 

Detailed Description

Debug message output helpers: core_debug() and vcore_debug().

Function Documentation

◆ core_debug()

void core_debug ( const char *  format,
  ... 
)
inline

Output a debug message on stderr.

Does nothing when NDEBUG is defined.

Note
Using the printf function of the C library inflates the size of the code and uses a lot of stack. An alternative would be to implement a tiny and limited functionality implementation of printf.
Parameters
formatprintf-style format string, followed by the variables to print.

◆ vcore_debug()

void vcore_debug ( const char *  format,
va_list  args 
)
inline

Output a debug message on stderr from a va_list.

Does nothing when NDEBUG is defined.

Parameters
formatprintf-style format string.
argsVariable argument list matching format.