DSP subsystem.
More...
Go to the source code of this file.
◆ DSPCallback
function pointer typedef for the user's DSP interrupt callback
◆ dsptask_t
forward typdef to struct _dsp_task. This struture holds certain DSP task information for execution.
- Parameters
-
state | current task state set |
prio | priority of the task |
flags | currnet task flag(s) set. |
init_vec | initialization vector. depends on the DSP code to execute. |
resume_vec | resume vector. depends on the DSP code to execute. |
iram_maddr | main memory address of i-ram image. NOTE: Has to be aligned on a 32byte boundery! |
iram_len | size of i-ram image. NOTE: Should be a multiple of 32 |
iram_addr | DSP i-ram address to load the image to. |
dram_maddr | main memory address of d-ram image. NOTE: Has to be aligned on a 32byte boundery! |
dram_len | size of d-ram image. NOTE: Should be a multiple of 32 |
dram_addr | DSP d-ram address to load the image to. |
init_cb | pointer to the user's init callback function. Called durring task initialization. |
res_cb | pointer to the user's resume callback function. Called when the task should resume. |
done_cb | pointer to the user's done callback function. Called when the task has finished. |
req_cb | pointer to the user's request callback function. Used to retrieve data from main application durring execution. |
next | pointer to the next task in the doubly linked list. |
prev | pointer to the previous task in the doubly linked list. |
◆ DSPTaskCallback
function pointer typedef for the user's DSP task callbacks
- Parameters
-
[in] | task | pointer to the dsp_task structure. |
◆ DSP_AddTask()
Add a DSP task to the tasklist and start executing if necessary.
- Parameters
-
[in] | task | pointer to a dsptask_t structure which holds all necessary values for DSP task execution. |
- Returns
- current task
◆ DSP_AssertInt()
Asserts the processor interface interrupt.
- Returns
- none
◆ DSP_AssertTask()
◆ DSP_CancelTask()
◆ DSP_CheckMailFrom()
u32 DSP_CheckMailFrom |
( |
| ) |
|
Check for mail from DSP.
- Returns
- 1: has mail, 0: no mail
◆ DSP_CheckMailTo()
Check if mail was sent to DSP.
- Returns
- 1: mail sent, 0: mail on route
◆ DSP_Halt()
◆ DSP_Init()
Initialize DSP subsystem.
- Returns
- none
◆ DSP_ReadCPUtoDSP()
Read back CPU->DSP mailbox.
- Returns
- mail value received
◆ DSP_ReadMailFrom()
Read mail from DSP.
- Returns
- mail value received
◆ DSP_RegisterCallback()
Register an user's interrupt callback. This may be used to handle DSP interrupts on its own. By default a system default callback is installed on DSP_Init().
- Parameters
-
[in] | user_cb | pointer to the user's interrupt callback function. \ |
- Returns
- pointer to old interrupt callback function.
◆ DSP_Reset()
◆ DSP_SendMailTo()
Send mail to DSP.
- Parameters
-
- Returns
- none
◆ DSP_Unhalt()