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.

MSP432P401R: How to set priority in interruption in MSP432

Part Number: MSP432P401R

Hi friends,

I 'am working in MSP432P401R, and i have three interruptions i need to set priorities how can do this?

On the main function I have the following code:

__enable_irq();

    NVIC->ISER[0] = 1 << ((TA0_0_IRQn) & 31);           /*ENABLE INTERRUPT IN TIMER */

    NVIC->ISER[0] = 1 << ((EUSCIB0_IRQn) & 31);

    NVIC->ISER[0] = 1 << ((PORT4_IRQn) & 31);           /*ENABLE INTERRUPT IN PORT3 */

Is this the right way to define each interrupt?

thanks in advance