Commit 6c6e8e5
drivers: serial: uart_max32: Refactor IRQ flag clearing
api_irq_update was clearing TX interrupt flags before the TX interrupt
could be served, breaking synchronization in time-sensitive applications.
Changes:
1. Remove unnecessary MXC_UART_ClearFlags() calls in api_fifo_read() and
api_irq_update to avoid premature flag clearing; ISR handler already
clears them after returning from the callback.
2. Replace raw flag checks in irq_is_pending() with more complete
api_irq_rx_ready() and api_irq_tx_ready().
Signed-off-by: Tahsin Mutlugun <[email protected]>1 parent a8d0a77 commit 6c6e8e5
1 file changed
+1
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | 370 | | |
374 | 371 | | |
375 | 372 | | |
| |||
438 | 435 | | |
439 | 436 | | |
440 | 437 | | |
441 | | - | |
442 | | - | |
443 | | - | |
| 438 | + | |
444 | 439 | | |
445 | 440 | | |
446 | 441 | | |
| |||
451 | 446 | | |
452 | 447 | | |
453 | 448 | | |
454 | | - | |
455 | | - | |
456 | 449 | | |
457 | 450 | | |
458 | 451 | | |
| |||
0 commit comments