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.

TMS320F28377D: Interrupt register and enable arguments, where to find the correct ones that map to each interrupt?

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

 Hello, 

I am trying to add some interrupts to a basic timer code, that uses IPC and a ISR I have wrote. However when I try to put the IPC INT in the function argument, it says it cannot be resolved. 

I have tried looking online for the correct arguments for this function but there is nothing. The function itself says 

"The available \e interruptNumber values are supplied in
//! <tt>inc/hw_ints.h</tt>. "

But I can't find out what this is. I can find a 7 year old thread about something called Tivaware, but I've never heard of it before and the timer functions compile OK. 

Interrupt_register(INT_TIMER0, &cpuTimer0ISR); 
Interrupt_register(INT_TIMER1, &cpuTimer1ISR); 
Interrupt_register(INT_IPC1, &ipc0_isr);

Interrupt_enable(INT_TIMER0);
Interrupt_enable(INT_TIMER1);
Interrupt_enable(INT_IPC1);

I don't want to just know what the correct arguments are for placing my ISR in the correct PIE register, or how to enable it - although that would be helpful I may need to code additional functions, so somewhere to find the correct function arguments for each ISR would be quite helpful?

Best regards,

Joel

  • Found the header files in the following path:

    C:/ti/c2000/C2000Ware_3_04_00_00/driverlib/f2837xd/driverlib

    #define INT_IPC_0                   0x0084010DU // 1.13 - IPC Interrupt 1

    I was close! Will leave this answer for anyone else who has the same issue or happy for it to be deleted if needed.

    Best regards,

    Joel