27 #ifdef __BUILD_WITH_EXAMPLE__
28 #include "lpc17xx_libcfg.h"
56 if (ch ==
'\r')
return;
57 if (ch ==
'\n') ch =
'\r';
87 uint8_t *s = (uint8_t *) str;
117 uint8_t c1=decnum%10;
118 uint8_t c2=(decnum/10)%10;
119 uint8_t c3=(decnum/100)%10;
133 uint8_t c1=decnum%10;
134 uint8_t c2=(decnum/10)%10;
135 uint8_t c3=(decnum/100)%10;
136 uint8_t c4=(decnum/1000)%10;
137 uint8_t c5=(decnum/10000)%10;
153 uint8_t c1=decnum%10;
154 uint8_t c2=(decnum/10)%10;
155 uint8_t c3=(decnum/100)%10;
156 uint8_t c4=(decnum/1000)%10;
157 uint8_t c5=(decnum/10000)%10;
158 uint8_t c6=(decnum/100000)%10;
159 uint8_t c7=(decnum/1000000)%10;
160 uint8_t c8=(decnum/10000000)%10;
161 uint8_t c9=(decnum/100000000)%10;
162 uint8_t c10=(decnum/100000000)%10;
188 nibble = (hexnum >> (4*i)) & 0x0F;
189 UARTPutChar(UARTx, (nibble > 9) ? (
'A' + nibble - 10) : (
'0' + nibble));
207 nibble = (hexnum >> (4*i)) & 0x0F;
208 UARTPutChar(UARTx, (nibble > 9) ? (
'A' + nibble - 10) : (
'0' + nibble));
225 nibble = (hexnum >> (4*i)) & 0x0F;
226 UARTPutChar(UARTx, (nibble > 9) ? (
'A' + nibble - 10) : (
'0' + nibble));
258 #if (USED_UART_DEBUG_PORT==0)
270 #elif (USED_UART_DEBUG_PORT==1)