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.

Initialization of more than one interrupt.

Hello everyone,

I am trying to configure two interrupts and cannot figure out what's wrong. The attatched code shows the initialization of UART and I2S.
The strange thing is that only the last initialized interrupt works.

e.g.

uartInit(9600);    
i2sInit();
-> I2S works

i2sInit();
uartInit(9600);    
-> UART works

 

I could not really find an answer to this problem, so I hope that anyone can help me. Thank you in advance.

 

Regards

Sebastian

 

 

  • Some more information:

    These are the two lines that seem to be responsible for the problem, but I do not know why and what to change.

    uartInit():     UART_init(&uartObj,CSL_UART_INST_0,UART_INTERRUPT);
    i2sInit():      i2sHandle = I2S_open(I2S_INSTANCE2, I2S_INTERRUPT, I2S_CHAN_STEREO);

  • In the register view you can see that calling the following function resets the whole configuration of the I2S interface that has been initialized before.

    UART_init(&uartObj,CSL_UART_INST_0,UART_INTERRUPT);

    http://home.arcor.de/braun-sebastian1/irq.png