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


Included Files


Preprocessor definitions

#define ACE_DLSB_OFS 0

#define ACE_DATA_OFS 0

#define ACE_DMSB_OFS 1

#define ACE_INTE_OFS 1

#define ACE_FCTL_OFS 2

#define ACE_INTI_OFS 2

#define ACE_LCTL_OFS 3

#define ACE_MCTL_OFS 4

#define ACE_LSTS_OFS 5

#define ACE_MSTS_OFS 6

#define ACE_SCRG_OFS 7

#define INTE_RDA_MSK 0x01

#define INTE_THE_MSK 0x02

#define INTE_LST_MSK 0x04

#define INTE_MST_MSK 0x08

#define FCTL_ENABLE 0x01

#define FCTL_LEVEL_1 0x00

#define FCTL_LEVEL_4 0x40

#define FCTL_LEVEL_8 0x80

#define FCTL_LEVEL_14 0xc0

#define INTI_MST_MSK 0x00

#define INTI_TXE_MSK 0x02

#define INTI_RDA_MSK 0x04

#define INTI_TDA_MSK 0x0c

#define INTI_LST_MSK 0x06

#define INTI_NON_MSK 0x01

#define INTI_FIFO_MSK 0xc0

#define LCTL_WS0_MSK 0x01

#define LCTL_WS1_MSK 0x02

#define LCTL_STB_MSK 0x04

#define LCTL_PEN_MSK 0x08

#define LCTL_PRE_MSK 0x10

#define LCTL_PRS_MSK 0x20

#define LCTL_BRK_MSK 0x40

#define LCTL_ENB_MSK 0x80

#define MCTL_DTR_MSK 0x01

#define MCTL_RTS_MSK 0x02

#define MCTL_GP1_MSK 0x04

#define MCTL_GP2_MSK 0x08

#define MCTL_LOP_MSK 0x10

#define LSTS_RDR_MSK 0x01

#define LSTS_OVR_MSK 0x02

#define LSTS_PER_MSK 0x04

#define LSTS_FER_MSK 0x08

#define LSTS_BDT_MSK 0x10

#define LSTS_THE_MSK 0x20

#define LSTS_TXE_MSK 0x40

#define MSTS_DCTS_MSK 0x01

#define MSTS_DDSR_MSK 0x02

#define MSTS_DRI_MSK 0x04

#define MSTS_DDCD_MSK 0x08

#define MSTS_CTS_MSK 0x10

#define MSTS_DSR_MSK 0x20

#define MSTS_RI_MSK 0x40

#define MSTS_DCD_MSK 0x80


Typedef IRQDEFS

typedef struct tagIRQDEFS IRQDEFS
struct tagIRQDEFS  
   {  
      IRQ_HANDLER* pvIrq;  
      volatile u_char* pnIrqMskPort;  
      u_char nMask;  
   }  

Global Variable hackup

u_char hackup[50]
Visible in:   nut/arch/avr/dev/tlc16c550.c

Local Variables

atIrqDefs
static const IRQDEFS atIrqDefs[]
Used in: AceInit()  

atIrqDcb
static ACEDCB* atIrqDcb[8]

Used in: AceInit()  

Global Function AceClose()

int AceClose ( NUTFILE* fp )
Prototyped in: nut/include/dev/ace.h
Calls: NutHeapFree() nut/os/heap.c
Used in:   nut/arch/avr/dev/ace.c

Global Function AceFlush()

int AceFlush ( NUTDEVICE* dev )
Prototyped in: nut/include/dev/ace.h
Calls: AceOutput() nut/arch/avr/dev/tlc16c550.c
  NutEventWait() nut/os/event.c
Called by: AcePut() nut/arch/avr/dev/tlc16c550.c
Used in: AceInit() nut/arch/avr/dev/tlc16c550.c

Global Function AceIOCtl()

int AceIOCtl ( NUTDEVICE* dev, int req, void* conf )
Prototyped in: nut/include/dev/ace.h
Calls: AceDisable() nut/arch/avr/dev/tlc16c550.c
  AceEnable() nut/arch/avr/dev/tlc16c550.c
  AceGetStatus() nut/arch/avr/dev/tlc16c550.c
  NutEventPostAsync() nut/os/event.c
Called by: AceInit() nut/arch/avr/dev/tlc16c550.c
Used in:   nut/arch/avr/dev/ace.c

Global Function AceInit()

int AceInit ( NUTDEVICE* dev )
Prototyped in: nut/include/dev/ace.h
Calls: AceEnable() nut/arch/avr/dev/tlc16c550.c
  AceIOCtl() nut/arch/avr/dev/tlc16c550.c
  NutRegisterIrqHandler() nut/dev/ihndlr.c
  memset()
Used in:   nut/arch/avr/dev/ace.c
References Functions: AceFlush() nut/arch/avr/dev/tlc16c550.c
  AceInput() nut/arch/avr/dev/tlc16c550.c
  AceIrqHandler() nut/arch/avr/dev/tlc16c550.c
  AceOutput() nut/arch/avr/dev/tlc16c550.c
References Variables: atIrqDcb nut/arch/avr/dev/tlc16c550.c
  atIrqDefs nut/arch/avr/dev/tlc16c550.c

Global Function AceInput()

int AceInput ( NUTDEVICE* dev )
Prototyped in: nut/include/dev/ace.h
Calls: NutEventWait() nut/os/event.c
Called by: AceRead() nut/arch/avr/dev/tlc16c550.c
Used in: AceInit() nut/arch/avr/dev/tlc16c550.c

Global Function AceOpen()

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

Global Function AceOutput()

int AceOutput ( NUTDEVICE* dev )
Prototyped in: nut/include/dev/ace.h
Called by: AceFlush() nut/arch/avr/dev/tlc16c550.c
Used in: AceInit() nut/arch/avr/dev/tlc16c550.c

Global Function AcePut()

int AcePut ( NUTDEVICE* dev, const void* buffer, int len, int pflg )
Calls: AceFlush() nut/arch/avr/dev/tlc16c550.c
Called by: AceWrite() nut/arch/avr/dev/tlc16c550.c
  AceWrite_P() nut/arch/avr/dev/tlc16c550.c

Global Function AceRead()

int AceRead ( NUTFILE* fp, void* buffer, int size )
Prototyped in: nut/include/dev/ace.h
Calls: AceInput() nut/arch/avr/dev/tlc16c550.c
Used in:   nut/arch/avr/dev/ace.c

Global Function AceSize()

long AceSize ( NUTFILE* fp )
Prototyped in: nut/include/dev/ace.h
Used in:   nut/arch/avr/dev/ace.c

Global Function AceWrite()

int AceWrite ( NUTFILE* fp, const void* buffer, int len )
Prototyped in: nut/include/dev/ace.h
Calls: AcePut() nut/arch/avr/dev/tlc16c550.c
Used in:   nut/arch/avr/dev/ace.c

Global Function AceWrite_P()

int AceWrite_P ( NUTFILE* fp, const prog_char* buffer, int len )
Prototyped in: nut/include/dev/ace.h
Calls: AcePut() nut/arch/avr/dev/tlc16c550.c
Used in:   nut/arch/avr/dev/ace.c

Local Function AceDisable()

static void AceDisable ( u_short base )
Calls: NutDelay() nut/arch/avr/dev/ostimer.c
Called by: AceIOCtl() nut/arch/avr/dev/tlc16c550.c

Local Function AceEnable()

static void AceEnable ( u_short base )
Called by: AceIOCtl() nut/arch/avr/dev/tlc16c550.c
  AceInit() nut/arch/avr/dev/tlc16c550.c

Local Function AceGetStatus()

static int AceGetStatus ( NUTDEVICE* dev, u_long* status )
Called by: AceIOCtl() nut/arch/avr/dev/tlc16c550.c

Local Function AceIrqHandler()

static void AceIrqHandler ( void* arg )
Calls: NutEventPostAsync() nut/os/event.c
Used in: AceInit() nut/arch/avr/dev/tlc16c550.c