Loading [MathJax]/extensions/tex2jax.js
Stepper-Motor-Control  v3.0.0
System on a Chip 2014 - Group 04
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
debugAndErrorOutput.h File Reference

Defines for Error and Debug-Output Management. More...

Include dependency graph for debugAndErrorOutput.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SOC2014_DEBUG
 Generates extra debug output on terminal.
 
#define debug(...)   printf_term(__VA_ARGS__)
 Prints Debug-messages in the terminal. More...
 
#define error(...)   printf_term(__VA_ARGS__)
 Prints the Error-messages in the terminal. More...
 

Detailed Description

Defines for Error and Debug-Output Management.

Author
Michael Riedel
Marc Kossmann
Version
v1.0.0
Date
11.11.2014

Include this header for simplified logging-features.

History:

v0.1.0 30.10.2014 Riedel

  • first draft for milestone 1b

v1.0.0 02.11.2014 Riedel

  • added documentation for defines

Definition in file debugAndErrorOutput.h.

Macro Definition Documentation

#define debug (   ...)    printf_term(__VA_ARGS__)

Prints Debug-messages in the terminal.

This define only works if switch SOC2014_DEBUG is set. Otherwise all debug(...)-statements are deleted from the codebase, while compilation.

Parameters
...Sends the given string directly to the terminal (printf_term()).

Definition at line 36 of file debugAndErrorOutput.h.

#define error (   ...)    printf_term(__VA_ARGS__)

Prints the Error-messages in the terminal.

Parameters
...Sends the given string directly to the terminal (printf_term()).

Definition at line 46 of file debugAndErrorOutput.h.