X-Git-Url: http://git.asbjorn.biz/?p=rapper.git;a=blobdiff_plain;f=new_cmsis%2Fusb%2Fserial.h;fp=new_cmsis%2Fusb%2Fserial.h;h=8a17e492cb31673f498ca0c3bc148a1a470a642b;hp=83ffd5529807daba9d8400e93ac93cd6dab048c1;hb=2253dc3498d4ace7f07884ec6d40d654ca677571;hpb=678d5839c35477bcb24f2a29ebb5bce4ce5f8152 diff --git a/new_cmsis/usb/serial.h b/new_cmsis/usb/serial.h index 83ffd55..8a17e49 100755 --- a/new_cmsis/usb/serial.h +++ b/new_cmsis/usb/serial.h @@ -1,30 +1,30 @@ -/*---------------------------------------------------------------------------- - * Name: serial.h - * Purpose: serial port handling - * Version: V1.10 - *---------------------------------------------------------------------------- - * This software is supplied "AS IS" without any warranties, express, - * implied or statutory, including but not limited to the implied - * warranties of fitness for purpose, satisfactory quality and - * noninfringement. Keil extends you a royalty-free right to reproduce - * and distribute executable files created using this software for use - * on NXP Semiconductors LPC microcontroller devices only. Nothing else - * gives you the right to use this software. - * - * Copyright (c) 2009 Keil - An ARM Company. All rights reserved. - *---------------------------------------------------------------------------*/ - -#define PORT_NUM 1 - -/*---------------------------------------------------------------------------- - Serial interface related prototypes - *---------------------------------------------------------------------------*/ -extern void ser_OpenPort (char portNum); -extern void ser_ClosePort (char portNum); -extern void ser_InitPort0 (unsigned long baudrate, unsigned int databits, unsigned int parity, unsigned int stopbits); -extern void ser_InitPort1 (unsigned long baudrate, unsigned int databits, unsigned int parity, unsigned int stopbits); -extern void ser_AvailChar (int *availChar); -extern int ser_Write (char portNum, const char *buffer, int *length); -extern int ser_Read (char *buffer, const int *length); -extern void ser_LineState (unsigned short *lineState); - +/*---------------------------------------------------------------------------- + * Name: serial.h + * Purpose: serial port handling + * Version: V1.10 + *---------------------------------------------------------------------------- + * This software is supplied "AS IS" without any warranties, express, + * implied or statutory, including but not limited to the implied + * warranties of fitness for purpose, satisfactory quality and + * noninfringement. Keil extends you a royalty-free right to reproduce + * and distribute executable files created using this software for use + * on NXP Semiconductors LPC microcontroller devices only. Nothing else + * gives you the right to use this software. + * + * Copyright (c) 2009 Keil - An ARM Company. All rights reserved. + *---------------------------------------------------------------------------*/ + +#define PORT_NUM 1 + +/*---------------------------------------------------------------------------- + Serial interface related prototypes + *---------------------------------------------------------------------------*/ +extern void ser_OpenPort (char portNum); +extern void ser_ClosePort (char portNum); +extern void ser_InitPort0 (unsigned long baudrate, unsigned int databits, unsigned int parity, unsigned int stopbits); +extern void ser_InitPort1 (unsigned long baudrate, unsigned int databits, unsigned int parity, unsigned int stopbits); +extern void ser_AvailChar (int *availChar); +extern int ser_Write (char portNum, const char *buffer, int *length); +extern int ser_Read (char *buffer, const int *length); +extern void ser_LineState (unsigned short *lineState); +