UART interrupt status

coder55
Posts: 3
Joined: Wed May 09, 2018 7:21 am

UART interrupt status

Postby coder55 » Wed May 09, 2018 7:24 am

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

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: UART interrupt status

Postby WiFive » Wed May 09, 2018 9:55 am

You mean your event handler? From event type UART_DATA vs UART_PATTERN_DET

coder55
Posts: 3
Joined: Wed May 09, 2018 7:21 am

Re: UART interrupt status

Postby coder55 » Wed May 09, 2018 5:37 pm

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?

coder55
Posts: 3
Joined: Wed May 09, 2018 7:21 am

Re: UART interrupt status

Postby coder55 » Wed May 09, 2018 7:15 pm

I actually wanted to install an ISR to process it faster. Should I pop an event from that same event queue inside the ISR?

Who is online

Users browsing this forum: Baidu [Spider] and 102 guests