RTEMS device driver and interrupt
Pattara Kiatisevi
pkiatisevi at student.ei.uni-stuttgart.de
Wed Apr 10 17:49:52 UTC 2002
Hi,
I have a conceptual problem while writing a device driver for sound.
The idea is that the write() function to this device should block until
all the music sent has been played. I plan to:
-have the audio core sent the interrupt when it finishes playing the music
to processor.
-in the device driver code:
-write() function blocks at rtems_semaphore_obtain(x) after
sending all data to hardware
-an interrupt service routine will call rtems_semaphore_release(x)
which will wake up the write() to finish
Is this scheme ok? Or RTEMS guys are usually doing something else..
Thanks much,
Pattara
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
----------------------------------------------------------------------
Ott Pattara Kiatisevi T L W G
M.Sc. INFOTECH Student, Stuttgart, Germany http://linux.thai.net/
----------------------------------------------------------------------
More information about the users
mailing list