Hello friends,
On i.MX6UL I need to create one unique class for more UARTs. One RX ISR and one TX ISR should serve for all UARTs. However a need to recognise a source of interrupt inside of ISR to be able to forward data into/from relevant buffer. Question is: How can I recognise the source of invoked interrupt inside of ISR in this case?
Thanks for answer in advance.
Best regards Marek
Hi Marek
in ISR one can check uart interrupt flags described in sect.53.15.8 UART Status
Register 1 (UARTx_USR1) i.MX6UL Reference Manual
http://www.nxp.com/docs/en/reference-manual/IMX6ULRM.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor,
this is possible solution, thanks for your answer, but originaly I was aimed to NVIC. Never mind. Make me clear pls in another matter. What if I set in UARTx_UFCR RXTL fiels for instance value of 8 and rest of my recieved packet takes only 7 bytes. Does it mean that for thouse 7 bytes there will be no interrupt at all?
Best regards
Marek