Soft Interrupt

   hi,

   I want to generate software interrupt on BF706 timer;suchn as blew:

    ref:exception.h ->    int raise_interrupt(interrupt_kind _kind, int _which,int _cmd, int _arg1, int _arg2);

   code:

void Timer1Handler(void *pCBParam, uint32_t Event, void *pArg)
{
switch(Event)
{
case ADI_TMR_EVENT_DATA_INT:
printf("INT1 coming.\n",idx1++);
raise_interrupt(num_interrupt_kind,1,0,0,0);
break;
default:
break;
}
return;
}


void Set_Timer1(void)
{
if( (eTmrResult = adi_tmr_Open (0, Timer1Memory, ADI_TMR_MEMORY,
Timer1Handler, NULL, &hTimer1)) == ADI_TMR_SUCCESS){
eTmrResult = adi_tmr_SetMode(hTimer1, ADI_TMR_MODE_CONTINUOUS_PWMOUT);
eTmrResult = adi_tmr_SetIRQMode(hTimer1, ADI_TMR_IRQMODE_WIDTH_DELAY);
eTmrResult = adi_tmr_SetPeriod(hTimer1, 6000);
eTmrResult = adi_tmr_SetWidth(hTimer1, 100);
eTmrResult = adi_tmr_SetDelay(hTimer1, 100);
eTmrResult = adi_tmr_Enable(hTimer1, true);
}
}


void test_raise()
{
printf("raise ENTER .\n");
}

int main(int argc, char *argv[])
{

adi_initComponents();
Set_Timer1();
register_handler(num_interrupt_kind, test_raise);
while(1);

//return 0;
}

     it does not work!

      who can tell me how can i use the function raise_interrupt,Please.