File nut/arch/avr/dev/ahdlcavr.c


Included Files


Preprocessor definitions

#define IN_ACC_MAP( c, m )

#define NUT_THREAD_AHDLCRXSTACK 512


Local Variables

fcstab
static prog_char fcstab[512]
Used in: AhdlcRx()  
  SendHdlcData()  

Global Function AhdlcAvrClose()

int AhdlcAvrClose ( NUTFILE* fp )
Prototyped in: nut/include/dev/ahdlcavr.h
Calls: NutHeapFree() nut/os/heap.c
Used in:   nut/arch/avr/dev/ahdlc0.c
    nut/arch/avr/dev/ahdlc1.c

Global Function AhdlcAvrIOCtl()

int AhdlcAvrIOCtl ( NUTDEVICE* dev, int req, void* conf )
Prototyped in: nut/include/dev/ahdlcavr.h
Calls: AhdlcAvrDisable() nut/arch/avr/dev/ahdlcavr.c
  AhdlcAvrEnable() nut/arch/avr/dev/ahdlcavr.c
  AhdlcAvrGetStatus() nut/arch/avr/dev/ahdlcavr.c
  AhdlcAvrSetStatus() nut/arch/avr/dev/ahdlcavr.c
  NutEventPost() nut/os/event.c
  NutGetCpuClock()
Called by: AhdlcAvrInit() nut/arch/avr/dev/ahdlcavr.c
Used in:   nut/arch/avr/dev/ahdlc0.c
    nut/arch/avr/dev/ahdlc1.c

Global Function AhdlcAvrInit()

int AhdlcAvrInit ( NUTDEVICE* dev )
Prototyped in: nut/include/dev/ahdlcavr.h
Calls: AhdlcAvrDisable() nut/arch/avr/dev/ahdlcavr.c
  AhdlcAvrIOCtl() nut/arch/avr/dev/ahdlcavr.c
  NutHeapAlloc() nut/os/heap.c
  NutHeapFree() nut/os/heap.c
  NutRegisterIrqHandler() nut/dev/ihndlr.c
  NutThreadCreate() nut/arch/avr/os/context_gcc.c
  memset()
Used in:   nut/arch/avr/dev/ahdlc0.c
    nut/arch/avr/dev/ahdlc1.c
References Functions: AhdlcRx() nut/arch/avr/dev/ahdlcavr.c
  Rx0Complete() nut/arch/avr/dev/ahdlcavr.c
  Tx0Complete() nut/arch/avr/dev/ahdlcavr.c

Global Function AhdlcAvrOpen()

NUTFILE* AhdlcAvrOpen ( NUTDEVICE* dev, const char* name, int mode, int acc )
Prototyped in: nut/include/dev/ahdlcavr.h
Calls: NutHeapAlloc() nut/os/heap.c
Used in:   nut/arch/avr/dev/ahdlc0.c
    nut/arch/avr/dev/ahdlc1.c

Global Function AhdlcAvrPut()

int AhdlcAvrPut ( NUTDEVICE* dev, const void* buffer, int len, int pflg )
Calls: SendRawByte() nut/arch/avr/dev/ahdlcavr.c
Called by: AhdlcAvrWrite() nut/arch/avr/dev/ahdlcavr.c
  AhdlcAvrWrite_P() nut/arch/avr/dev/ahdlcavr.c

Global Function AhdlcAvrRead()

int AhdlcAvrRead ( NUTFILE* fp, void* buffer, int size )
Prototyped in: nut/include/dev/ahdlcavr.h
Calls: NutEventWait() nut/os/event.c
Used in:   nut/arch/avr/dev/ahdlc0.c
    nut/arch/avr/dev/ahdlc1.c

Global Function AhdlcAvrWrite()

int AhdlcAvrWrite ( NUTFILE* fp, const void* buffer, int len )
Prototyped in: nut/include/dev/ahdlcavr.h
Calls: AhdlcAvrPut() nut/arch/avr/dev/ahdlcavr.c
Used in:   nut/arch/avr/dev/ahdlc0.c
    nut/arch/avr/dev/ahdlc1.c

Global Function AhdlcAvrWrite_P()

int AhdlcAvrWrite_P ( NUTFILE* fp, const prog_char* buffer, int len )
Prototyped in: nut/include/dev/ahdlcavr.h
Calls: AhdlcAvrPut() nut/arch/avr/dev/ahdlcavr.c
Used in:   nut/arch/avr/dev/ahdlc0.c
    nut/arch/avr/dev/ahdlc1.c

Global Function AhdlcOutput()

int AhdlcOutput ( NUTDEVICE* dev, NETBUF* nb )
Calls: SendHdlcData() nut/arch/avr/dev/ahdlcavr.c
  SendRawByte() nut/arch/avr/dev/ahdlcavr.c
Used in: AhdlcRx() nut/arch/avr/dev/ahdlcavr.c

Global Function AhdlcRx()

void AhdlcRx ( void* arg )
Prototyped in: nut/arch/avr/dev/ahdlcavr.c
Calls: NutEventWait() nut/os/event.c
  NutHeapAlloc() nut/os/heap.c
  NutHeapFree() nut/os/heap.c
  NutNetBufAlloc() nut/dev/netbuf.c
  NutSleep() nut/os/timer.c
  NutThreadSetPriority() nut/os/thread.c
  memcpy()
Used in: AhdlcAvrInit() nut/arch/avr/dev/ahdlcavr.c
References Functions: AhdlcOutput() nut/arch/avr/dev/ahdlcavr.c
References Variables: fcstab nut/arch/avr/dev/ahdlcavr.c

Local Function AhdlcAvrDisable()

static void AhdlcAvrDisable ( u_short base )
Calls: NutDelay()
Called by: AhdlcAvrIOCtl() nut/arch/avr/dev/ahdlcavr.c
  AhdlcAvrInit() nut/arch/avr/dev/ahdlcavr.c

Local Function AhdlcAvrEnable()

static void AhdlcAvrEnable ( u_short base )
Called by: AhdlcAvrIOCtl() nut/arch/avr/dev/ahdlcavr.c

Local Function AhdlcAvrGetStatus()

static int AhdlcAvrGetStatus ( NUTDEVICE* dev, u_long* status )
Called by: AhdlcAvrIOCtl() nut/arch/avr/dev/ahdlcavr.c

Local Function AhdlcAvrSetStatus()

static int AhdlcAvrSetStatus ( NUTDEVICE* dev, u_long status )
Called by: AhdlcAvrIOCtl() nut/arch/avr/dev/ahdlcavr.c

Local Function Rx0Complete()

static void Rx0Complete ( void* arg )
Used in: AhdlcAvrInit() nut/arch/avr/dev/ahdlcavr.c

Local Function SendHdlcData()

static int SendHdlcData ( AHDLCDCB* dcb, const u_char* data, u_short len, u_short* txfcs )
Calls: SendRawByte() nut/arch/avr/dev/ahdlcavr.c
Called by: AhdlcOutput() nut/arch/avr/dev/ahdlcavr.c
References Variables: fcstab nut/arch/avr/dev/ahdlcavr.c

Local Function SendRawByte()

static int SendRawByte ( AHDLCDCB* dcb, u_char ch, u_char flush )
Calls: NutEventWait() nut/os/event.c
Called by: AhdlcAvrPut() nut/arch/avr/dev/ahdlcavr.c
  AhdlcOutput() nut/arch/avr/dev/ahdlcavr.c
  SendHdlcData() nut/arch/avr/dev/ahdlcavr.c

Local Function Tx0Complete()

static void Tx0Complete ( void* arg )
Used in: AhdlcAvrInit() nut/arch/avr/dev/ahdlcavr.c