Skip to content

Conversation

@ArcaneNibble
Copy link
Collaborator

Because we are already using PRU1, we cannot use dual-PRU mode for the SUART library. Remove support for this mode so that the code is easier to maintain and understand.

@ArcaneNibble
Copy link
Collaborator Author

I don't know how much further we might want to specialize this interface, but the functions removed here will likely never be re-enabled.

@coveralls
Copy link

coveralls commented Aug 5, 2025

Coverage Status

coverage: 56.979% (+0.01%) from 56.965%
when pulling 588fa4e on ArcaneNibble:suart_remove_not_used
into 7d9b601 on pybricks:master.

@ArcaneNibble ArcaneNibble force-pushed the suart_remove_not_used branch from f81b10c to 6c81441 Compare August 5, 2025 22:50
At this point, we are more-or-less committed to running our own firmware on PRU1.
This means that we cannot use it for SUART instances. Remove support for
running SUART across both PRUs in order to simplify the code and make it
easier to understand.
We will never use these modes, since we need TX *and* RX.
Remove them to make the code easier to understand.
Removes PRU1 register definitions and code which depends on them
@ArcaneNibble ArcaneNibble force-pushed the suart_remove_not_used branch from 6c81441 to be92bf1 Compare August 5, 2025 22:59
Copy link
Member

@dlech dlech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to remove all of this dead code.

This is not a complete automated reformat, but fix some particularly
ugly line wrapping and spacing issues.
@dlech
Copy link
Member

dlech commented Aug 5, 2025

Thanks!

@dlech dlech merged commit 72e7458 into pybricks:master Aug 5, 2025
17 checks passed
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.

3 participants