#include <cfg/ahdlc.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/nutconfig.h>
#include <sys/atom.h>
#include <sys/heap.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <sys/thread.h>
#include <dev/irqreg.h>
#include <dev/ppp.h>
#include <netinet/if_ppp.h>
#include <net/ppp.h>
#include <net/if_var.h>
#include <dev/usartat91.h>
#include <dev/at91_ahdlc.h>
Go to the source code of this file.
Defines | |
#define | NUT_DEPRECATED |
#define | NUT_AHDLC_RECV_DMA_SIZE 64 |
#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 | AhdlcOutput (NUTDEVICE *dev, NETBUF *nb) |
Send HDLC frame. | |
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 | |
void | AhdlcRx (void *arg) |
Asynchronous HDLC receiver thread. |
#define NUT_DEPRECATED |
Definition at line 55 of file at91_ahdlc.c.
#define NUT_AHDLC_RECV_DMA_SIZE 64 |
Definition at line 82 of file at91_ahdlc.c.
Referenced by AhdlcAt91Init().
#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().