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


Included Files


Preprocessor definitions

#define _IOFBF 0x00

#define _IOLBF 0x01

#define _IONBF 0x02


Global Function UartAvrClose()

int UartAvrClose ( NUTFILE* fp )
Prototyped in: nut/include/dev/uart.h
Calls: NutHeapFree() nut/os/heap.c
Used in:   nut/arch/avr/dev/uart0.c
    nut/arch/avr/dev/uart1.c

Global Function UartAvrFlush()

int UartAvrFlush ( NUTDEVICE* dev )
Prototyped in: nut/include/dev/uart.h
Calls: NutEventWait() nut/os/event.c
  UartAvrOutput() nut/arch/avr/dev/uartavr.c
Called by: UartAvrPut() nut/arch/avr/dev/uartavr.c
Used in: UartAvrInit() nut/arch/avr/dev/uartavr.c

Global Function UartAvrIOCtl()

int UartAvrIOCtl ( NUTDEVICE* dev, int req, void* conf )
Prototyped in: nut/include/dev/uart.h
Calls: NutGetCpuClock() nut/arch/avr/dev/ostimer.c
  UartAvrDisable() nut/arch/avr/dev/uartavr.c
  UartAvrEnable() nut/arch/avr/dev/uartavr.c
  UartAvrGetStatus() nut/arch/avr/dev/uartavr.c
Called by: UartAvrInit() nut/arch/avr/dev/uartavr.c
Used in:   nut/arch/avr/dev/uart0.c
    nut/arch/avr/dev/uart1.c

Global Function UartAvrInit()

int UartAvrInit ( NUTDEVICE* dev )
Prototyped in: nut/include/dev/uart.h
Calls: NutRegisterIrqHandler() nut/dev/ihndlr.c
  UartAvrIOCtl() nut/arch/avr/dev/uartavr.c
  memset()
Used in:   nut/arch/avr/dev/uart0.c
    nut/arch/avr/dev/uart1.c
References Functions: RxComplete() nut/arch/avr/dev/uartavr.c
  TxComplete() nut/arch/avr/dev/uartavr.c
  UartAvrFlush() nut/arch/avr/dev/uartavr.c
  UartAvrInput() nut/arch/avr/dev/uartavr.c
  UartAvrOutput() nut/arch/avr/dev/uartavr.c

Global Function UartAvrInput()

int UartAvrInput ( NUTDEVICE* dev )
Prototyped in: nut/include/dev/uart.h
Calls: NutEventWait() nut/os/event.c
Called by: UartAvrRead() nut/arch/avr/dev/uartavr.c
Used in: UartAvrInit() nut/arch/avr/dev/uartavr.c

Global Function UartAvrOpen()

NUTFILE* UartAvrOpen ( NUTDEVICE* dev, const char* name, int mode, int acc )
Prototyped in: nut/include/dev/uart.h
Calls: NutHeapAlloc() nut/os/heap.c
Used in:   nut/arch/avr/dev/uart0.c
    nut/arch/avr/dev/uart1.c

Global Function UartAvrOutput()

int UartAvrOutput ( NUTDEVICE* dev )
Prototyped in: nut/include/dev/uart.h
Called by: UartAvrFlush() nut/arch/avr/dev/uartavr.c
Used in: UartAvrInit() nut/arch/avr/dev/uartavr.c

Global Function UartAvrPut()

int UartAvrPut ( NUTDEVICE* dev, const void* buffer, int len, int pflg )
Calls: UartAvrFlush() nut/arch/avr/dev/uartavr.c
Called by: UartAvrWrite() nut/arch/avr/dev/uartavr.c
  UartAvrWrite_P() nut/arch/avr/dev/uartavr.c

Global Function UartAvrRead()

int UartAvrRead ( NUTFILE* fp, void* buffer, int size )
Prototyped in: nut/include/dev/uart.h
Calls: UartAvrInput() nut/arch/avr/dev/uartavr.c
Used in:   nut/arch/avr/dev/uart0.c
    nut/arch/avr/dev/uart1.c

Global Function UartAvrSize()

long UartAvrSize ( NUTFILE* fp )
Prototyped in: nut/include/dev/uart.h
Used in:   nut/arch/avr/dev/uart0.c
    nut/arch/avr/dev/uart1.c

Global Function UartAvrWrite()

int UartAvrWrite ( NUTFILE* fp, const void* buffer, int len )
Prototyped in: nut/include/dev/uart.h
Calls: UartAvrPut() nut/arch/avr/dev/uartavr.c
Used in:   nut/arch/avr/dev/uart0.c
    nut/arch/avr/dev/uart1.c

Global Function UartAvrWrite_P()

int UartAvrWrite_P ( NUTFILE* fp, const prog_char* buffer, int len )
Prototyped in: nut/include/dev/uart.h
Calls: UartAvrPut() nut/arch/avr/dev/uartavr.c
Used in:   nut/arch/avr/dev/uart0.c
    nut/arch/avr/dev/uart1.c

Local Function RxComplete()

static void RxComplete ( void* arg )
Used in: UartAvrInit() nut/arch/avr/dev/uartavr.c

Local Function TxComplete()

static void TxComplete ( void* arg )
Used in: UartAvrInit() nut/arch/avr/dev/uartavr.c

Local Function UartAvrDisable()

static void UartAvrDisable ( u_short base )
Calls: NutDelay() nut/arch/avr/dev/ostimer.c
Called by: UartAvrIOCtl() nut/arch/avr/dev/uartavr.c

Local Function UartAvrEnable()

static void UartAvrEnable ( u_short base )
Called by: UartAvrIOCtl() nut/arch/avr/dev/uartavr.c

Local Function UartAvrGetStatus()

static int UartAvrGetStatus ( NUTDEVICE* dev, u_long* status )
Called by: UartAvrIOCtl() nut/arch/avr/dev/uartavr.c