Skip to content

UART: Add TX Overflow Detection and Status Flag Handling - #44

Open
Anubhav-30 wants to merge 3 commits into
riscv-mcu:masterfrom
Anubhav-30:uart-error-flags
Open

Anubhav-30 wants to merge 3 commits into
riscv-mcu:masterfrom
Anubhav-30:uart-error-flags

Conversation

@Anubhav-30

Copy link
Copy Markdown

This PR adds TX overflow detection in the APB UART module.

Changes:

  • Added tx_overflow flag to detect writes when TX FIFO is not ready
  • Updated LSR register to reflect overflow condition
  • Improved robustness of UART transmit path

Impact:

Prevents silent data loss and improves error visibility for software.

Testing:

  • Verified behavior when TX is not ready
  • Overflow flag correctly asserted in LSR

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.

1 participant