wdenk | 708521a | 2003-09-12 15:35:15 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2003 |
| 3 | * Martin Krause, TQ-Systems GmbH, <martin.krause@tqs.de> |
| 4 | * |
Peter Tyser | f7c6737 | 2010-04-12 22:28:11 -0500 | [diff] [blame^] | 5 | * Based on arch/arm/cpu/arm920t/serial.c, by Gary Jennejohn |
Detlev Zundel | f1b3f2b | 2009-05-13 10:54:10 +0200 | [diff] [blame] | 6 | * (C) Copyright 2002 Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
wdenk | 708521a | 2003-09-12 15:35:15 +0000 | [diff] [blame] | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 21 | * |
| 22 | */ |
| 23 | |
| 24 | #ifndef _RS485_H_ |
| 25 | #define _RS485_H_ |
| 26 | |
kevin.morfitt@fearnside-systems.co.uk | e0d8131 | 2009-11-17 18:30:34 +0900 | [diff] [blame] | 27 | #include <asm/arch/s3c24x0_cpu.h> |
wdenk | 708521a | 2003-09-12 15:35:15 +0000 | [diff] [blame] | 28 | |
| 29 | int rs485_init (void); |
| 30 | int rs485_getc (void); |
| 31 | void rs485_putc (const char c); |
| 32 | int rs485_tstc (void); |
| 33 | void rs485_puts (const char *s); |
| 34 | void trab_rs485_enable_tx(void); |
| 35 | void trab_rs485_enable_rx(void); |
| 36 | |
| 37 | #endif /* _RS485_H_ */ |