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.

Global interrupt enable using assembly

Hello,

I have two questions :

1- I am writing an interrupt code using C but  I need to enable global interrupt using an assembly instruction CPSIE , how can I write this instruction within the C program ,  I am using Code Composer Studio.

2- To clear interrupt flag  , I use the GPIOICR , but in its description " writing a 1 to the IC bit in the GPIOICR register clears the corresponding bit in the GPIORIS and GPIOMIS registers "

so , when clearing the corresponding bit in GPIORIS and GPIOMIS , the interrupt will be disabled ,hence , the interrupt will be executed only once .