at91_ahdlc.c File Reference

Go to the source code of this file.

Defines

#define NUT_DEPRECATED
#define UART_RECEIVER_TIMEOUT   32
#define SIG_UART   sig_UART1
#define US_ID   US1_ID
#define US_GPIO_PINS   0x00000360
#define IN_ACC_MAP(c, m)   (( ((uint8_t) (c)) < 0x20) && ((m) & (1UL << (c))) != 0)
#define NUT_THREAD_AHDLCRXSTACK   2048

Functions

int AhdlcAt91IOCtl (NUTDEVICE *dev, int req, void *conf)
 Perform on-chip UART control functions.
int AhdlcAt91Init (NUTDEVICE *dev)
 Initialize asynchronous HDLC device.
int AhdlcAt91Read (NUTFILE *fp, void *buffer, int size)
 Read from the asynchronous HDLC device.
int AhdlcAt91Put (NUTDEVICE *dev, CONST void *buffer, int len, int pflg)
 Write to the asynchronous HDLC device.
int AhdlcAt91Write (NUTFILE *fp, CONST void *buffer, int len)
 Write to the asynchronous HDLC device.
int AhdlcAt91Write_P (NUTFILE *fp, PGM_P buffer, int len)
 Write to the asynchronous HDLC device.
NUTFILE * AhdlcAt91Open (NUTDEVICE *dev, CONST char *name, int mode, int acc)
 Open the asynchronous HDLC device.
int AhdlcAt91Close (NUTFILE *fp)
 Close the asynchronous HDLC device.

Variables

NUTDEVICE devAhdlc1
 Device information structure.

UART1 RTS Handshake Control

UART1_RTS_BIT must be defined in arch/avr.h



int AhdlcOutput (NUTDEVICE *dev, NETBUF *nb)
 Send HDLC frame.
void AhdlcRx (void *arg)
 Asynchronous HDLC receiver thread.

Define Documentation

#define NUT_DEPRECATED

Definition at line 55 of file at91_ahdlc.c.

#define UART_RECEIVER_TIMEOUT   32

Definition at line 88 of file at91_ahdlc.c.

Referenced by AhdlcAt91Open().

#define SIG_UART   sig_UART1

Definition at line 90 of file at91_ahdlc.c.

Referenced by AhdlcAt91Init(), and AhdlcAt91Open().

#define US_ID   US1_ID

Definition at line 91 of file at91_ahdlc.c.

#define US_GPIO_PINS   0x00000360

Definition at line 92 of file at91_ahdlc.c.

Referenced by AhdlcAt91Init().


© 2000-2010 by contributors - visit http://www.ethernut.de/