Page 1 of 1

UART interrupt status

Posted: Wed May 09, 2018 7:24 am
by coder55
Hi,

I'm trying to configure my board to handle a UART event once my given rx fifo threshold is reached. However, I also have a pattern recognition interrupt enabled. I was wondering how to tell inside my interrupt handler whether the interrupt came from the threshold or the pattern recognition. Any help would be appreciated.

Thanks

Re: UART interrupt status

Posted: Wed May 09, 2018 9:55 am
by WiFive
You mean your event handler? From event type UART_DATA vs UART_PATTERN_DET

Re: UART interrupt status

Posted: Wed May 09, 2018 5:37 pm
by coder55
I see. So I know that I can get UART events from a UART event queue and casing on it. I'm actually trying to register an ISR so that I can handle the RX Threshold event ASAP. Do I still look at the same event queue to see what caused the interrupt?

Re: UART interrupt status

Posted: Wed May 09, 2018 7:15 pm
by coder55
I actually wanted to install an ISR to process it faster. Should I pop an event from that same event queue inside the ISR?