This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Robert,
The document you are reading has a good overview of how the HWI function works in DSP/BIOS. The API document can be found here: http://www-s.ti.com/sc/techlit/spru404. I'll look and see if I can find some example code that uses HWI. It doesn't appear that the examples that come with BIOS uses this feature from what I can see.
Regards.
Robert,
I was able to get your project to build by modifying the function name from HWI_pcmTxIRQ to _HWI_pcmTxIRQ using the configuration tool. This is the preferred method of managing interrupts with DSP BIOS. Also, DSP BIOS takes care of context switch for you, so you don't need to worry about that.
Another thing is that with an ISR you can't pass parameters to the function, so you need to change the prototype from
void HWI_pcmTxIRQ(Uint32 param)
to
void HWI_pcmTxIRQ(void)
If you need to pass information to the ISR, then you need to make the parameter a global variable so that the ISR can access it.
Regards.
Hi Tommy,
I have followed a similar procedure to configure the UART interrupt for C5515, with DSP/BIOS.
I am using the "IRQ_..." APIs , which are used in the C55xx_CSL example code under "<TI_INSTALL>\ccs_v4.0_examples\uart\CSL_UART_IntExample".
(which works well without DSP/BIOS)
Can the "IRQ_..." APIs be used even with DSP_BIOS ? or shoud we use the APIs which are part of the HWI Module specified in the DSP_BIOS API documentation ?
Is there any example code which shows configuring/handling interrupts with DSP/BIOS ?
Thanks & Regards
Ullas
Ullas,
When you use DSP/BIOS for HWI management you shouldn't need to use CSL. I believe you will only need to setup your interrupt mask register in your code to activate the interrupts you want to use in your system. The BIOS scheduler should handle context save and restore when running your ISR.
To double check to make sure I haven't missed anything you should consider posting this to the BIOS Forum as well. You can find it here: http://e2e.ti.com/support/embedded/f/355.aspx. They may be able to help with sample code because I can't find anything on HWI for recent versions of BIOS.
Regards.