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]

not able to find the serial_DSR and serial_init functions..


Hi again everyone!

I want to add a semaphore that get's incremented for each byte written to my
serialport.
I want this to be able to use the cyg_io_read(), which needs a certain
length of data to
read. And this is where the semaphore comes in the picture. 
The read process looks at the semaphore and does cyg_semaphore_trywait() and
increments
one local counter. Thus it gets the number of bytes to read.

To get a semaphore that is encremented for each byte written to the port, I
declare
a semaphore in the serialio.h file.
But what I want to do next is to initialize the semaphore in the serial_init
function and
to increment it in a serial_DSR function.

The problem is that I can't find the serial_init or the serial_DSR
procedures...
I am using a the templates for a nanoEngine, StrongArm CPU. I used the CVS
to
update the repository, and now I can't find the above mentioned functions
for my board/CPU...

Does anyone know where they are? Or if the names of them are changed, what
the new
names are??

Thanks in advance!

Best regards 
Arif


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