Contiki-Inga 3.x
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
cpu
cc253x
dev
uart1.h
1
#ifndef UART_1_H
2
#define UART_1_H
3
4
#include "contiki-conf.h"
5
6
#include "
cc253x.h
"
7
#include "8051def.h"
8
#include "
uart.h
"
9
10
/*---------------------------------------------------------------------------*/
11
/* UART1 Enable - Disable */
12
#ifdef UART1_CONF_ENABLE
13
#define UART1_ENABLE UART1_CONF_ENABLE
14
#else
15
#define UART1_ENABLE 0
16
#endif
17
/*---------------------------------------------------------------------------*/
18
/* UART1 Function Declarations */
19
#if UART1_ENABLE
20
void
uart1_init();
21
void
uart1_writeb(uint8_t byte);
22
23
void
uart1_set_input(
int
(* input)(
unsigned
char
c));
24
#if UART1_CONF_WITH_INPUT
25
void
uart1_rx_isr(
void
) __interrupt(URX1_VECTOR);
26
/* Macro to turn on / off UART RX Interrupt */
27
#define UART1_RX_INT(v) do { URX1IE = v; } while(0)
28
#else
29
#define UART1_RX_INT(v)
30
#endif
/* UART1_CONF_WITH_INPUT */
31
#else
32
#define uart1_init(...)
33
#define uart1_writeb(...)
34
#define uart1_set_input(...)
35
#define UART1_RX_INT(v)
36
#endif
/* UART1_ENABLE */
37
38
#endif
/* UART_1_H */
Generated on Thu Apr 24 2014 16:26:14 for Contiki-Inga 3.x by
1.8.3.1