uart0driver.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef _UART0DRIVER_H_
  2. #define _UART0DRIVER_H_
  3. /*!
  4. * Copyright (C) 2003 by Streamit All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. *
  10. * 1. Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * 2. Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the distribution.
  15. * 3. All advertising materials mentioning features or use of this
  16. * software must display the following acknowledgement:
  17. *
  18. * This product includes software developed by Streamit
  19. * and its contributors.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY STREAMIT AND CONTRIBUTORS
  22. * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  24. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CALL DIRECT
  25. * CELLULAR SOLUTIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  26. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  27. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  28. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  29. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  30. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  31. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32. * SUCH DAMAGE.
  33. *
  34. * For additional information see http://www.streamit.eu/
  35. */
  36. /*!
  37. *
  38. * COPYRIGHT STREAMIT BV 2010
  39. * Created
  40. *
  41. *
  42. */
  43. /*--------------------------------------------------------------------------*/
  44. /* Include files */
  45. /*--------------------------------------------------------------------------*/
  46. #include <stdio.h>
  47. #define UART_COOKEDMODE_RAW 0L
  48. #define UART_COOKEDMODE_EOL 1L
  49. extern void Uart0DriverInit(void);
  50. extern void Uart0DriverStart(void);
  51. extern void Uart0DriverStop(void);
  52. extern FILE *Uart0DriverGetStream(void);
  53. extern int Uart0DriverGetNumber(PGM_P prompt, int dflt);
  54. extern int Uart0DriverKey(void);
  55. extern void Uart0DriverSetCookedMode(u_long Mode);
  56. #endif