These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Committer:
frank26080115
Date:
Sun Mar 20 05:38:56 2011 +0000
Revision:
0:bf7b9fba3924

        

Who changed what in which revision?

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