rs485.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * (C) Copyright 2003
  3. * Martin Krause, TQ-Systems GmbH, <martin.krause@tqs.de>
  4. *
  5. * Based on cpu/arm920t/serial.c, by Gary Jennejohn
  6. * (C) Copyright 2002 Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  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. #ifndef _RS485_H_
  24. #define _RS485_H_
  25. #include <s3c2400.h>
  26. int rs485_init (void);
  27. int rs485_getc (void);
  28. void rs485_putc (const char c);
  29. int rs485_tstc (void);
  30. void rs485_puts (const char *s);
  31. void trab_rs485_enable_tx(void);
  32. void trab_rs485_enable_rx(void);
  33. #endif /* _RS485_H_ */