#define ID_SERIAL 0 #define ID_CONSOLE 1 #define MAX(a,b) ((a)>=(b))?(a):(b) #define MIN(a,b) ((a)<=(b))?(a):(b) char* hexdigtoa(uint8_t i);