E:/Projects/AvrLib/libc/io/cioopen.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cio.h"
#include "task.h"

Include dependency graph for cioopen.c:

Go to the source code of this file.

Functions

static int dev_search (IOCB *iocb)
static IOCBAllocIOCB (void)
static void FreeIOCB (IOCB *I)
int CioAddHandler (char *devname, H_JVEC *t)
IOCBCioOpen (char *devname, int mode)
int CioClose (IOCB *I)

Variables

IOCBPoolList
HTABS htabs [CIO_MAX_DEV]
int last_dev = 0
ECBIOCBBlocker


Function Documentation

static IOCB* AllocIOCB ( void   )  [static]

Definition at line 76 of file cioopen.c.

References malloc, _iocb::next, PendSemaphore(), and PostSemaphore().

Referenced by CioOpen().

int CioAddHandler ( char *  devname,
H_JVEC t 
)

Definition at line 101 of file cioopen.c.

References CIO_DEVTABLE_FULL, CIO_MAX_DEV, HTABS::dev_name, Disable(), Enable(), HTABS::HtabsEntry, and last_dev.

Referenced by RInit(), and xRInit().

int CioClose ( IOCB I  ) 

Definition at line 169 of file cioopen.c.

References H_JVEC::closv, FreeIOCB(), HTABS::HtabsEntry, and _iocb::ichid.

Referenced by _close().

IOCB* CioOpen ( char *  devname,
int  mode 
)

static int dev_search ( IOCB iocb  )  [static]

Definition at line 39 of file cioopen.c.

References atoi(), HTABS::dev_name, _iocb::dev_name, _iocb::devnum, last_dev, strcspn(), strncmp(), and strncpy().

Referenced by CioOpen().

static void FreeIOCB ( IOCB I  )  [static]

Definition at line 92 of file cioopen.c.

References _iocb::next, PendSemaphore(), and PostSemaphore().

Referenced by CioClose(), and CioOpen().


Variable Documentation

HTABS htabs[CIO_MAX_DEV]

Definition at line 35 of file cioopen.c.

Referenced by CioGetC(), CioPutC(), CioRead(), CioStatus(), CioWrite(), and CioXIO().

Definition at line 37 of file cioopen.c.

Referenced by CioInit().

int last_dev = 0

Definition at line 36 of file cioopen.c.

Referenced by CioAddHandler(), CioInit(), and dev_search().

Definition at line 34 of file cioopen.c.


Generated on Sun Aug 31 13:31:28 2008 for FrankenRTOS by  doxygen 1.5.6