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

DRAFT - DO NOT MERGE - Add third USB CDC (COM) port for debug output #93

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

henrygab
Copy link
Contributor

@henrygab henrygab commented Sep 19, 2024

For discussion of the feature, review as it is developed, etc.

N.B. - This branch is NOT intended to be merged directly. It has too many changes. Small commits at each step, but still ... too much for one PR. Besides, the second time it's written, things are done more cleanly. 😉


Log


`core1_entry()` now calls `debug_uart_init()`.
Functionally and order-of-operations identical.
Moved to `core1_entry()` to keep items logically grouped,
and since `tx_fifo_init()` and `rx_fifo_init()` are called there.
e.g.,  `%...u` instead of `%...d` for unsigned values

Also, on a hunch, calculated the maximum buffer usage that might occur in `ui_statusbar_update()`.  This buffer is NOT a queue like the other tx buffers, and there is no blocking behavior (by design) when appending to it.

Unfortunately, the manual calculations shows that the maximum characters used far exceeds the statically allocated buffer size.

STRONGLY recommend to mark unsafe functions like `sprintf()` as deprecated and use safe alternatives.
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