1 /*----------------------------------------------------------------------------
3 * Purpose: serial port handling
5 *----------------------------------------------------------------------------
6 * This software is supplied "AS IS" without any warranties, express,
7 * implied or statutory, including but not limited to the implied
8 * warranties of fitness for purpose, satisfactory quality and
9 * noninfringement. Keil extends you a royalty-free right to reproduce
10 * and distribute executable files created using this software for use
11 * on NXP Semiconductors LPC microcontroller devices only. Nothing else
12 * gives you the right to use this software.
14 * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
15 *---------------------------------------------------------------------------*/
19 /*----------------------------------------------------------------------------
20 Serial interface related prototypes
21 *---------------------------------------------------------------------------*/
22 extern void ser_OpenPort (char portNum);
23 extern void ser_ClosePort (char portNum);
24 extern void ser_InitPort0 (unsigned long baudrate, unsigned int databits, unsigned int parity, unsigned int stopbits);
25 extern void ser_InitPort1 (unsigned long baudrate, unsigned int databits, unsigned int parity, unsigned int stopbits);
26 extern void ser_AvailChar (int *availChar);
27 extern int ser_Write (char portNum, const char *buffer, int *length);
28 extern int ser_Read (char *buffer, const int *length);
29 extern void ser_LineState (unsigned short *lineState);