?lang_form? ?lang_select? ?lang_submit? ?lang_endform?
{HEADER END}
{BLAME START}

library

?curdirlinks? -

Blame information for rev 6

Line No. Rev Author Line
1 6 kaklik /*! \file radiolinx.c \brief Linx Radio Driver. */
2 //*****************************************************************************
3 //
4 // File Name : 'radiolinx.c'
5 // Title : Linx Radio Driver
6 // Author : Pascal Stang - Copyright (C) 2003
7 // Created : 09/01/2003
8 // Revised : 09/03/2003
9 // Version : 0.1
10 // Target MCU : Atmel AVR Series
11 // Editor Tabs : 4
12 //
13 // This code is distributed under the GNU Public License
14 // which can be found at http://www.gnu.org/licenses/gpl.txt
15 //
16 //*****************************************************************************
17  
18 //----- Include Files ---------------------------------------------------------
19 #include <avr/io.h> // include I/O definitions (port names, pin names, etc)
20 #include <avr/interrupt.h> // include interrupt support
21  
22 #include "global.h" // include our global settings
23 #include "buffer.h" // include buffer support
24 #include "uartsw.h" // include software UART driver
25 #include "stxetx.h" // include STX/ETX protocol library
26  
27 #include "radiolinx.h"
28  
29 // global variables
30  
31 // functions
32 void radioInit(void)
33 {
34 // Initialize radio interface
35 // Since this radio creates a special serial interface,
36 // we initialize it here.
37 uartswInit();
38 // set baud rate of comm
39 uartswSetBaudRate(4800);
40 // initialize stxetx to use the software UART for sending data
41 stxetxInit(uartswSendByte);
42 }
43  
44 void radioSend(u08 status, u08 type, u08 datalength, u08* dataptr)
45 {
46 stxetxSend(status, type, datalength, dataptr);
47 }
48  
49 cBuffer* radioGetRxBuffer(void)
50 {
51 return uartswGetRxBuffer();
52 }
{BLAME END}
{FOOTER START}

Powered by WebSVN v2.8.3