3 * Author: Christian Starkjohann
4 * Creation Date: 2005-01-16
6 * Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH
7 * License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
8 * This Revision: $Id: oddebug.c 692 2008-11-07 15:07:40Z cs $
15 #warning "Never compile production devices with debugging enabled"
17 static void uartPutc(char c)
19 while(!(ODDBG_USR & (1 << ODDBG_UDRE))); /* wait for data register empty */
23 static uchar hexAscii(uchar h)
27 h += 'a' - (uchar)10 - '0';
32 static void printHex(uchar c)
34 uartPutc(hexAscii(c >> 4));
35 uartPutc(hexAscii(c));
38 void odDebug(uchar prefix, uchar *data, uchar len)