b2df1d61d3dbd83af0c3a5dbb9201b45143688e3
[fw/sdcc] / device / lib / ds390 / putchar.c
1 /*-------------------------------------------------------------------------\r
2   putchar.c - putchar implementation for DS80C390\r
3 \r
4    Written By - Maarten Brock, sourceforge.brock@dse.nl\r
5 \r
6    This program is free software; you can redistribute it and/or modify it\r
7    under the terms of the GNU General Public License as published by the\r
8    Free Software Foundation; either version 2, or (at your option) any\r
9    later version.\r
10 \r
11    This program is distributed in the hope that it will be useful,\r
12    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14    GNU General Public License for more details.\r
15 \r
16    You should have received a copy of the GNU General Public License\r
17    along with this program; if not, write to the Free Software\r
18    Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
19 \r
20    In other words, you are welcome to use, share and improve this program.\r
21    You are forbidden to forbid anyone else to use, share and improve\r
22    what you give them.   Help stamp out software-hoarding!\r
23 -------------------------------------------------------------------------*/\r
24 \r
25 #include <tinibios.h>\r
26 #include <stdio.h>\r
27 \r
28 void putchar (char c)\r
29 {\r
30         Serial0PutChar(c);\r
31 }\r
32 \r
33 extern char getchar(void)\r
34 {\r
35         return Serial0GetChar();\r
36 }\r