17 #if !defined(__MESSAGE_H__)
24 #ifndef USB_HOST_SERIAL
25 #define USB_HOST_SERIAL Serial
29 #include <avr/pgmspace.h>
34 void E_Notify(
char const * msg,
int lvl);
40 #define Notify E_Notify
41 #define NotifyStr E_NotifyStr
42 #define Notifyc E_Notifyc
54 #define Notify(...) ((void)0)
55 #define NotifyStr(...) ((void)0)
56 #define Notifyc(...) ((void)0)
57 #define NotifyFailGetDevDescr(...) ((void)0)
58 #define NotifyFailSetDevTblEntry(...) ((void)0)
59 #define NotifyFailGetConfDescr(...) ((void)0)
60 #define NotifyFailGetDevDescr(...) ((void)0)
61 #define NotifyFailSetDevTblEntry(...) ((void)0)
62 #define NotifyFailGetConfDescr(...) ((void)0)
63 #define NotifyFailSetConfDescr(...) ((void)0)
64 #define NotifyFailUnknownDevice(...) ((void)0)
65 #define NotifyFail(...) ((void)0)
68 template <
class ERROR_TYPE>
69 void ErrorMessage(uint8_t level,
char const * msg, ERROR_TYPE rcode = 0) {
73 D_PrintHex<ERROR_TYPE > (rcode, level);
74 Notify(PSTR(
"\r\n"), level);
78 template <
class ERROR_TYPE>
83 D_PrintHex<ERROR_TYPE > (rcode, 0x80);
84 Notify(PSTR(
"\r\n"), 0x80);
90 #endif // __MESSAGE_H__