Yes,
iir is a local variable used only to store the status of UART1_II as I enter the ISR. The status gives me the reason the ISR was triggered.
ir is a pointer to a structure that implements my queue and state machine variables. The lines with ir can all be considered application specific and can be substituted with code for your system.
I forgot to mention that your initialization seem the same as mine except that I use the sequence:
| Code: |
UART0_FCTL = 0x00; // clear FIFO logic
UART0_FCTL = 0x01; // turn on FIFO first
UART0_FCTL = 0x07; // then enable xmit, rcv & FIFOs
|
because the specifications seemed to suggest multiple steps for enable FIFO reliably.