Opening Devices
Streaming I/O and Device Drivers
7-37
The configurable device parameters are used to set the operating parameters
of the hardware. There are no DSP/BIOS constraints on which parameters
should be set in Dxx_init rather than in Dxx_open.
The object semaphore objptr
→
sync is typically used to signal a task that is
pending on the completion of an I/O operation. For example, a task can call
SIO_put, which can block by pending on objptr
→
sync. When the required
output is accomplished, SEM_post is called with objpt
→
sync. This makes a
task blocked in Dxx_output ready to run.
DSP/BIOS does not impose any special constraints on the use of
synchronization semaphores within a device driver. The appropriate use of
such semaphores depends on the nature of the driver requirements and the
underlying hardware.
The ready semaphore, objptr
→
ready, is used by Dxx_ready, which is called
by SIO_select to determine if a device is available for I/O. This semaphore is
explained in section 4.7,
Содержание TMS320 Series
Страница 1: ...TMS320 DSP BIOS v5 40 User s Guide Literature Number SPRU423G April 2009 ...
Страница 16: ...xvi ...
Страница 152: ...Tasks 4 48 Figure 4 12 Trace from Example 4 7 ...
Страница 168: ...Semaphores 4 64 Figure 4 14 Trace Results from Example 4 11 ...
Страница 202: ...5 20 ...
Страница 287: ...Index 9 Index Void 1 11 W words data memory 3 15 of code 1 5 wrapper function 2 29 ...
Страница 288: ...Index 10 Index ...