#ifndef _SERIAL_DEBUG_
#define _SERIAL_DEBUG_



#define DEBUG_PORT		0

#define MAX_BUFFER_SIZE	80

char dbgMsg[MAX_BUFFER_SIZE];

#if DEBUG_PORT!=0
#define SEND_MSG \
	do { \
	for (uint8_t i = 0; i<strlen(dbgMsg) && i<MAX_BUFFER_SIZE; i++) \
		OSuartPutCharWait(DEBUG_PORT, dbgMsg[i], 10); \
	OSuartPutCharWait(DEBUG_PORT, '\r', 10); \
	OSuartPutCharWait(DEBUG_PORT, '\n', 10); \
	} while(0)
#else
#define SEND_MSG
#endif

#endif
