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)
14 #warning "Never compile production devices with debugging enabled"
16 static void uartPutc(char c)
18 while(!(ODDBG_USR & (1 << ODDBG_UDRE))); /* wait for data register empty */
22 static uchar hexAscii(uchar h)
26 h += 'a' - (uchar)10 - '0';
31 static void printHex(uchar c)
33 uartPutc(hexAscii(c >> 4));
34 uartPutc(hexAscii(c));
37 void odDebug(uchar prefix, uchar *data, uchar len)