/[H8]/trunk/docs/Microchip TCP_IP stack/Include/TCPIP Stack/UART.h
ViewVC logotype

Contents of /trunk/docs/Microchip TCP_IP stack/Include/TCPIP Stack/UART.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15 - (show annotations) (download)
Thu Apr 19 09:01:15 2007 UTC (17 years, 1 month ago) by hedin
File MIME type: text/plain
File size: 3007 byte(s)
added the TCP/IP stack, source code.
1 /*********************************************************************
2 *
3 * UART access routines for C18 and C30
4 *
5 *********************************************************************
6 * FileName: UART.h
7 * Processor: PIC18, PIC24F/H, dsPIC30F, dsPIC33F
8 * Complier: Microchip C18 v3.03 or higher
9 * Complier: Microchip C30 v2.01 or higher
10 * Company: Microchip Technology, Inc.
11 *
12 * Software License Agreement
13 *
14 * Copyright © 2002-2007 Microchip Technology Inc. All rights
15 * reserved.
16 *
17 * Microchip licenses to you the right to use, modify, copy, and
18 * distribute:
19 * (i) the Software when embedded on a Microchip microcontroller or
20 * digital signal controller product (“Device”) which is
21 * integrated into Licensee’s product; or
22 * (ii) ONLY the Software driver source files ENC28J60.c and
23 * ENC28J60.h ported to a non-Microchip device used in
24 * conjunction with a Microchip ethernet controller for the
25 * sole purpose of interfacing with the ethernet controller.
26 *
27 * You should refer to the license agreement accompanying this
28 * Software for additional information regarding your rights and
29 * obligations.
30 *
31 * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT
32 * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT
33 * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A
34 * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
35 * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR
36 * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF
37 * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS
38 * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE
39 * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER
40 * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT
41 * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE.
42 *
43 *
44 * Author Date Comment
45 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46 * Howard Schlunder 6/16/06 Original
47 ********************************************************************/
48 #ifndef __UART_H
49 #define __UART_H
50
51 #include "Compiler.h"
52 #include "HardwareProfile.h"
53
54
55 #if defined(__dsPIC33F__) || defined(__dsPIC30F__) || defined(__PIC24H__) || defined(__PIC24F__)
56
57 #include <uart.h>
58
59 void putsUART2(unsigned int *buffer);
60 unsigned int getsUART2(unsigned int length,unsigned int *buffer,
61 unsigned int uart_data_wait);
62 char DataRdyUART2(void);
63 char BusyUART2(void);
64 unsigned int ReadUART2(void);
65 void WriteUART2(unsigned int data);
66
67 #elif defined(__18CXX)
68 //
69 // PIC18
70 //
71
72 char BusyUSART(void);
73 void CloseUSART(void);
74 char DataRdyUSART(void);
75 char ReadUSART(void);
76 void WriteUSART(char data);
77 void getsUSART(char *buffer, unsigned char len);
78 void putsUSART(char *data);
79 void putrsUSART(const rom char *data);
80
81 #endif
82
83 #endif

  ViewVC Help
Powered by ViewVC 1.1.20