Subversion Repositories NaviCtrl

Rev

Rev 249 | Rev 313 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 249 Rev 254
Line 26... Line 26...
26
 
26
 
27
#define ANSI_CLEAR                              "\033[2J"
27
#define ANSI_CLEAR                              "\033[2J"
Line 28... Line 28...
28
#define ANSI_HOME                               "\033[H"
28
#define ANSI_HOME                               "\033[H"
-
 
29
 
29
 
30
// macros for easier use 
Line 30... Line 31...
30
// macros for easier use 
31
#ifdef DEBUG
31
#ifdef DEBUG                                                                                                                    // only include functions if DEBUG is defined in main.h
32
#include "printf_P.h"                                                                                                                   // only include functions if DEBUG is defined in main.h
32
 
33
 
33
#define Debug(format, args...)                  {   _printf_P(&Debug_Putchar, (format) , ## args); DebugSend(CMD_NONE); } 
34
#define Debug(format, args...)                  {   _printf_P(&Debug_Putchar, (format) , ## args); DebugSend(CMD_NONE); } 
34
#define Debug_Raw(format, args...)              {   _printf_P(&Debug_Putchar, (format) , ## args); DebugSend(CMD_RAW_OUTPUT); } 
35
#define Debug_Raw(format, args...)              {   _printf_P(&Debug_Putchar, (format) , ## args); DebugSend(CMD_RAW_OUTPUT); } 
Line 35... Line 36...
35
#define Debug_Warning(format, args...)  {   _printf_P(&Debug_Putchar, (format) , ## args); DebugSend(CMD_WARNING_MSG); } 
36
#define Debug_Warning(format, args...)  {   _printf_P(&Debug_Putchar, (format) , ## args); DebugSend(CMD_WARNING_MSG); } 
36
#define Debug_Error(format, args...)    {   _printf_P(&Debug_Putchar, (format) , ## args); DebugSend(CMD_ERROR_MSG); } 
37
#define Debug_Error(format, args...)    {   _printf_P(&Debug_Putchar, (format) , ## args); DebugSend(CMD_ERROR_MSG); } 
37
#define Debug_OK(format, args...)               {   _printf_P(&Debug_Putchar, (format) , ## args); DebugSend(CMD_GREEN_MSG); } 
38
#define Debug_OK(format, args...)               {   _printf_P(&Debug_Putchar, (format) , ## args); DebugSend(CMD_GREEN_MSG); } 
38
 
39
 
39
struct str_Debug
-
 
-
 
40
typedef struct
Line 40... Line 41...
40
{
41
{
41
 unsigned char Cmd;                     // bitcoded command 
42
        u8 Cmd;                 // bitcoded command 
Line 42... Line 43...
42
 char Text[32];
43
        u8 Text[32];
43
};
44
} __attribute__((packed)) Debug_t;
Line 44... Line 45...
44
 
45