aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-02 16:05:13 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-02 16:05:13 +0000
commit81507dcbe7336d523b42afeeb422bd9c983dbf6f (patch)
treeaa6867ab65d133a1f73f248358e1c758b7f15070 /test/test.c
parentfcd90e0bc8d3c5584607550703fe78f27c21b58e (diff)
downloadChibiOS-81507dcbe7336d523b42afeeb422bd9c983dbf6f.tar.gz
ChibiOS-81507dcbe7336d523b42afeeb422bd9c983dbf6f.tar.bz2
ChibiOS-81507dcbe7336d523b42afeeb422bd9c983dbf6f.zip
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
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c18
1 files changed, 9 insertions, 9 deletions
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) {