diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-06-18 16:22:34 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-06-18 16:22:34 +0000 |
commit | 9057c6c72be213bb7f07929e2ddd1ab1e942a1de (patch) | |
tree | 2e61c984622621c39207b1d63198ca50a2e99f6c /test | |
parent | 3626647d7b924ca07df4197f9cde4a7965b8cbdf (diff) | |
download | ChibiOS-9057c6c72be213bb7f07929e2ddd1ab1e942a1de.tar.gz ChibiOS-9057c6c72be213bb7f07929e2ddd1ab1e942a1de.tar.bz2 ChibiOS-9057c6c72be213bb7f07929e2ddd1ab1e942a1de.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4294 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/test/test.c b/test/test.c index beb0bfd3b..e6ee8e0ce 100644 --- a/test/test.c +++ b/test/test.c @@ -87,11 +87,6 @@ void * ROMCONST wa[5] = {test.wa.T0, test.wa.T1, test.wa.T2, */
static BaseSequentialStream *chp;
-static void _putc(BaseSequentialStream *chp, char c) {
-
- chSequentialStreamWrite(chp, (const uint8_t *)&c, 1);
-}
-
/**
* @brief Prints a decimal unsigned number.
*
@@ -101,13 +96,13 @@ void test_printn(uint32_t n) { char buf[16], *p;
if (!n)
- _putc(chp, '0');
+ chSequentialStreamPut(chp, '0');
else {
p = buf;
while (n)
*p++ = (n % 10) + '0', n /= 10;
while (p > buf)
- _putc(chp, *--p);
+ chSequentialStreamPut(chp, *--p);
}
}
@@ -119,7 +114,7 @@ void test_printn(uint32_t n) { void test_print(const char *msgp) {
while (*msgp)
- _putc(chp, *msgp++);
+ chSequentialStreamPut(chp, *msgp++);
}
/**
@@ -145,7 +140,7 @@ static void print_tokens(void) { char *cp = tokens_buffer;
while (cp < tokp)
- _putc(chp, *cp++);
+ chSequentialStreamPut(chp, *cp++);
}
/**
@@ -310,7 +305,7 @@ static void print_line(void) { unsigned i;
for (i = 0; i < 76; i++)
- _putc(chp, '-');
+ chSequentialStreamPut(chp, '-');
chSequentialStreamWrite(chp, (const uint8_t *)"\r\n", 2);
}
|