This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: typecasting (cyg_io_handle_t) to (cyg_devtab_entry_t)




On Mon, 30 Aug 2004, Andrew Lunn wrote:

I am implementing the cyg_io_write() routine for the I/O layer of an LCD
device driver. When I try to cast the first argument 'handle' to a pointer
of type cyg_devtab_entry_t, it gives error, which is understandable becuase
thats the way other drivers access data in the device table entry. The code
and the error as listed below:
[snip]
 cyg_devtab_entry_t *ptrDevTab;
 ptrDevTab = (cyg_devtab_entry_t *)handle;

int err;

Perhaps you are compiling in C mode where variable declarations can not follow statements?


- Mark G.


-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]