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

Out-of-line definitions of the inline core_debug functions, needed for C code. More...

#include "core_debug.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

Out-of-line definitions of the inline core_debug functions, needed for C code.

Function Documentation

◆ core_debug()

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

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 
)
externinline

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.