FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/gpf/tst_drv/stack1_Serial.h @ 322:5d1e22505446
GPF: tif library sources imported from Leonardo version
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 13 Apr 2014 07:21:57 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
321:439afc1139b2 | 322:5d1e22505446 |
---|---|
1 /*============================================================================= | |
2 * Copyright 1996-2001 Texas Instruments Inc. All rights reserved. | |
3 */ | |
4 #ifndef STACK1_SERIAL_HEADER | |
5 #define STACK1_SERIAL_HEADER | |
6 | |
7 //#include "puf_PrimHdr.h" | |
8 | |
9 /*============================================================================= | |
10 * Description: | |
11 */ | |
12 //typedef struct{ | |
13 // Puf_PrimHdr primHdr; | |
14 //}Stack1_Serial_RxInd; | |
15 | |
16 typedef void (*SERIAL_CALLBACK_FUNC)(void); | |
17 | |
18 /*=========================================================================== | |
19 * Description: | |
20 * Install the Uart interrupt handlers and initialize the Uart. | |
21 */ | |
22 int | |
23 stack1_Serial_PowerUp( SERIAL_CALLBACK_FUNC callback ); | |
24 | |
25 /*=========================================================================== | |
26 * Description: | |
27 * Copy the data from the Rx buffer into the passed in buffer. If there | |
28 * aren't dataLen bytes in the Rx buffer all the bytes currently in the rx | |
29 * buffer are returned. | |
30 */ | |
31 unsigned long | |
32 stack1_Serial_receiveData( unsigned char *dataPtr, | |
33 unsigned long dataLen ); | |
34 | |
35 /*=========================================================================== | |
36 * Description: | |
37 * Copy the data to be transmitted into the Tx Buffer and enable the Uart Tx | |
38 * interrupt. If the Tx buffer is full, discard the data and return a buffer | |
39 * full indication. | |
40 */ | |
41 int | |
42 stack1_Serial_sendData( unsigned char *dataPtr, | |
43 unsigned long dataLen ); | |
44 | |
45 #endif |