Digital Signal Processing Reference
In-Depth Information
/* Enable Interrupts Globally (set GIE bit in CSR = 1) */
void enableGlobalINT(void)
{
CSR |= 0x1;
}
/* Enable NMI (non-maskable interrupt); must be enabled
* or no other interrupts can be recognized by 'C6000 CPU */
void enableNMI(void)
{
IER = _set(IER, 1, 1);
}
/* Enable a specific interrupt;
* (INTnumber = {4,5,6, …,15}) */
void enableSpecificINT(int INTnumber)
{
IER = _set(IER, INTnumber, INTnumber);
}
/******************************************************
* C6000 devices have hardware configurable interrupts.
* To use the McBSP interrupts you must configure them
because they are selected by default.
* You must set the appropriate interrupt select bits in
IML and IMH memory-mapped int select registers.
* IML and IMH addresses are defined in c6211dsk.h.
*******************************************************/
void config_Interrupt_Selector(int INTnumber, int
INTsource)
{
/* INTnumber = {4,5,6, …,15}
INTsource = see #define list above
*/
union
{
struct
Search WWH ::




Custom Search