LPUART Interrupt waiting, program hang on #70116
-
Question Code /* Disable and re-enable the global interrupt to protect the interrupt enable register during
* read-modify-wrte. */
irqMask = DisableGlobalIRQ();
/* Enable RX interrupt. */
base->CTRL |= (uint32_t)(LPUART_CTRL_RIE_MASK | LPUART_CTRL_ILIE_MASK | LPUART_CTRL_ORIE_MASK);
EnableGlobalIRQ(irqMask); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
Hi @YMont , And the code you referenced is not waiting those bits. That line sets the 3 enables, and then enables interrupts. Perhaps you could provide more details about the issue you are facing. Are you using one of the Zephyr samples in the repo on one of the RT1060 EVK boards? Best regards |
Beta Was this translation helpful? Give feedback.
Hi @YMont ,
Those three bits are interrupt enables for the LPUART peripheral. Those bits, and all registers are documented in the RT1060 Reference manual, see the CTRL register description in the LPUART chapter.
And the code you referenced is not waiting those bits. That line sets the 3 enables, and then enables interrupts.
Perhaps you could provide more details about the issue you are facing. Are you using one of the Zephyr samples in the repo on one of the RT1060 EVK boards?
Best regards