[okl4-developer] OKL4 v2.1: Initiate client-to-server data exchange

Frank Kaiser frank.kaiser at opensynergy.com
Tue Sep 9 03:55:31 EST 2008


Hello

 

I still have a hard time to get my SPI driver/server working. Due to the
lack of documentation I take the VSERIAL driver as an example, and for
the client side I use the drivers_example.c code. I try to figure out
what is required for the client to control the server, especially to
initiate the data transfer.

The defined IDL4 interface only provides initialisation, configuration
and shutdown functions. In the implementation there are 2 times calls of
the function L4_Notify(server, 0x1), where server is the thread ID of
VSERIAL. One call is at the end of function init_serial(), the other in
function main(), which handles the income notification SERIAL. It looks
as if the notification call shall initiate sending of serial data,
however, I cannot find anything in the server code which handles a
notification from the client, i. e. there is no call of function
L4_WaitNotify().

In the generated file server_loop.c there is an IPC reception mechanism
which handles two things:

*       Processing of IDL4-defined functions

*       Handling of an interrupt notification which is directed to the
asynchronous handler

So, where is the client notification going to? To me it is even unclear,
how L4_Notify() maps its parameter to IPC (not described in the OKL4
user manual) to see how it looks in the server loop.

 

Regards

Frank

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20080908/d57e65fc/attachment.htm 


More information about the Developer mailing list