[ECOS] typecasting (cyg_io_handle_t) to (cyg_devtab_entry_t)

Samie Hassan Ghauri samiehg@hotmail.com
Mon Aug 30 17:16:00 GMT 2004

thanks. I was in C mode and veriable declarations were not being allowed 
after statements.


>From: Mark Grosberg <mark@nolab.conman.org>
>To: Andrew Lunn <andrew@lunn.ch>
>CC: Samie Hassan Ghauri 
>Subject: Re: [ECOS] typecasting (cyg_io_handle_t)  to  (cyg_devtab_entry_t)
>Date: Mon, 30 Aug 2004 12:26:28 -0400 (EDT)
>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 
>>>of type cyg_devtab_entry_t, it gives error, which is understandable 
>>>thats the way other drivers access data in the device table entry. The 
>>>and the error as listed below:
>>>  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.

Add photos to your e-mail with MSN 8. Get 2 months FREE*. 

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

More information about the Ecos-discuss mailing list