FreeCalypso > hg > fc-magnetite
comparison src/gpf2/tst/drv/stack1_Serial.h @ 294:cd37d228dae0
src/gpf2/{misc,tst}: import from TCS211 semi-src
with CRLF line endings and directory name capitalization cleaned up
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 21 Oct 2017 01:12:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
293:5b2ebc94cae4 | 294:cd37d228dae0 |
---|---|
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 |