[ECOS] eCos cyg/io/devtab.h typos?

Trenton D. Adams tadams@extremeeng.com
Tue Jun 12 09:26:00 GMT 2001


I'm looking at the code below from the devtab.h file starting around
line 113.  Shouldn't the cyg_devio_bwrite and cyg_devio_bread be
switched between the two macros?  I mean doesn't cyg_devio_bwrite and
cyg_devio_bread stand for block write/read respectively, and not
character write/read respectively?  If so, what are the block read/write
doing in a char table and visaversa in the block table?

#define
CHAR_DEVIO_TABLE(_l,_write,_read,_select,_get_config,_set_config)    \
cyg_devio_table_t _l = {                                        \
    _write,                                                     \
    _read,                                                      \
    cyg_devio_bwrite,                                           \
    cyg_devio_bread,                                            \
    _select,                                                    \
    _get_config,                                                \
    _set_config,                                                \
};

#define
BLOCK_DEVIO_TABLE(_l,_bwrite,_bread,_select,_get_config,_set_config)
\
cyg_devio_table_t _l = {                                        \
    cyg_devio_cwrite,                                           \
    cyg_devio_cread,                                            \
    _bwrite,                                                    \
    _bread,                                                     \
    _select,                                                    \
    _get_config,                                                \
    _set_config,                                                \
};



More information about the Ecos-discuss mailing list