From 81507dcbe7336d523b42afeeb422bd9c983dbf6f Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 2 May 2009 16:05:13 +0000 Subject: Now the serial driver subsystem is a descendant class of a BaseChannel. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@936 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/test.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/test.c') diff --git a/test/test.c b/test/test.c index 3beb3e59a..79b2202ac 100644 --- a/test/test.c +++ b/test/test.c @@ -70,27 +70,27 @@ void test_printn(uint32_t n) { char buf[16], *p; if (!n) - chFDDPut(comp, '0'); + chIOPut(comp, '0'); else { p = buf; while (n) *p++ = (n % 10) + '0', n /= 10; while (p > buf) - chFDDPut(comp, *--p); + chIOPut(comp, *--p); } } void test_print(char *msgp) { while (*msgp) - chFDDPut(comp, *msgp++); + chIOPut(comp, *msgp++); } void test_println(char *msgp) { test_print(msgp); - chFDDPut(comp, '\r'); - chFDDPut(comp, '\n'); + chIOPut(comp, '\r'); + chIOPut(comp, '\n'); } /* @@ -105,7 +105,7 @@ static void print_tokens(void) { char *cp = tokens_buffer; while (cp < tokp) - chFDDPut(comp, *cp++); + chIOPut(comp, *cp++); } void test_emit_token(char token) { @@ -232,9 +232,9 @@ static void print_line(void) { unsigned i; for (i = 0; i < 76; i++) - chFDDPut(comp, '-'); - chFDDPut(comp, '\r'); - chFDDPut(comp, '\n'); + chIOPut(comp, '-'); + chIOPut(comp, '\r'); + chIOPut(comp, '\n'); } msg_t TestThread(void *p) { -- cgit v1.2.3