Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(PeriphDrivers): Leaving UART HE interrupt disabled during initial fill. #1140

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

kevin-gillespie
Copy link
Contributor

@kevin-gillespie kevin-gillespie commented Aug 27, 2024

Description

This prevent un-intended interrupts, causing txCnt to exceend txLen. If the HE interrupt is enabled while we're filling the FIFO, then we can get the interrupt while we're filling. This interrupts the filling process, leading to txCnt exceeding txLen.

This is only an issue in the initial fill, since we're probably not in the interrupt context. When we're in the interrupt context, we may get another HE interrupt flag from the UART, but it won't interrupt the CPU, and we clear the flag after completing the fill.

Checklist Before Requesting Review

  • PR Title follows correct guidelines.
  • Description of changes and all other relevant information.

This prevent un-intended interrupts, causing txCnt to
exceend txLen.
@kevin-gillespie kevin-gillespie merged commit 8690344 into main Aug 27, 2024
14 of 15 checks passed
@kevin-gillespie kevin-gillespie deleted the fix/uart-int-enable branch August 27, 2024 18:15
sihyung-maxim pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Aug 27, 2024
ozersa pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Sep 11, 2024
ozersa pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants