VxWorks Reference Manual : Libraries

dspLib

NAME

dspLib - dsp support library

ROUTINES

dspInit( ) - initialize dsp support

DESCRIPTION

This library provides a general interface to the dsp. To activate dsp support, dspInit( ) must be called before any tasks using the dsp are spawned. This is done automatically by the root task, usrRoot( ), in usrConfig.c when INCLUDE_DSP is defined in configAll.h.

For information about architecture-dependent dsp routines, see the manual entry for dspArchLib.

VX_DSP_TASK OPTION Saving and restoring dsp registers adds to the context switch time of a task. Therefore, dsp registers are not saved and restored for every task. Only those tasks spawned with the task option VX_DSP_TASK will have dsp registers saved and restored.

NOTE

If a task does any dsp operations, it must be spawned with VX_DSP_TASK.

INTERRUPT LEVEL

DSP registers are not saved and restored for interrupt service routines connected with intConnect( ). However, if necessary, an interrupt service routine can save and restore dsp registers by calling routines in dspArchLib.

INCLUDE FILES

dspLib.h

SEE ALSO

dspLib, dspArchLib, dspShow, intConnect( ), VxWorks Programmer's Guide: Basic OS


Libraries : Routines

dspInit( )

NAME

dspInit( ) - initialize dsp support

SYNOPSIS


void dspInit (void)

DESCRIPTION

This routine initializes dsp support and must be called before using the dsp. This is done automatically by the root task, usrRoot( ), in usrConfig.c when INCLUDE_DSP is defined in configAll.h.

RETURNS

N/A

SEE ALSO

dspLib