Dear,
How to force an interrupt by SW?
Is this possible by setting a flag?
Does somebody has example code for this?
Thank you and best regards,
John
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.
Dear,
How to force an interrupt by SW?
Is this possible by setting a flag?
Does somebody has example code for this?
Thank you and best regards,
John
Hi John,
Which interrupt do you want to force?
Section 3.3.1.1 of the TRM covers how to do this. You would need to set the bit in the ISPR register that corresponds to the exception number (given in table 3.3.2):
The NVIC_SetPendingIRQ function can be used to do this. It is an alias for the __NVIC_SetPendingIRQ function shown below.
Best Regards,
Brandon Fisher
Hi Brandon,
UART0.
This is working, can I also set additonally the bit DL_UART_MAIN_IIDX_EOT_DONE in the iidx?
How can this be done?
Thank you again!
Hi John,
There is no API to do this that I saw, but you should be able to just set the EOT value within the ISET register for your particular UART instance.
Something like UART_0_INST->CPU_INT.ISET = DL_UART_INTERRUPT_EOT_DONE should work.
Best Regards,
Brandon Fisher