extruder/debug.h

00001 #ifndef _DEBUG_H
00002 #define _DEBUG_H
00003 
00004 #include  <stdint.h>
00005 
00006 #ifdef  DEBUG
00007   #define   DEBUG_PID       1
00008   #define   DEBUG_DDA       2
00009   #define   DEBUG_POSITION  4
00010 #else
00011   // by setting these to zero, the compiler should optimise the relevant code out
00012   #define   DEBUG_PID       0
00013   #define   DEBUG_DDA       0
00014   #define   DEBUG_POSITION  0
00015 #endif
00016 
00017 #define   DEBUG_ECHO      128
00018 
00019 extern volatile uint8_t debug_flags;
00020 
00021 #endif  /* _DEBUG_H */
 All Data Structures Files Functions Variables Defines