Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
What was completed, changed, or updated?
Added a generic UART device driver for communication with RFD900 and other UART devices.
Why was this done (if applicable)?
This driver is mainly used to receive UART data reliably without dropping any bytes, which is achieved with the DMA RX + internal buffer combo. Since STM32 HAL does not have an internal buffer aside from DMA, there is a risk of dropping data if we don't call HAL receive in time. Using this driver, we can automatically store the data we receive in our own internal buffer for later. As long as we read from our internal buffer fast enough, we shouldn't be droppping any bytes.
Testing
What manual tests were used to validate the code?
Test results:
2. The previous test but done in ZP3.5 to make sure it's properly integrated in ZP3.5.
3. Verify that it can receive data from an actual RFD900. (Optional?).
What unit tests were used to validate the code?
Circular buffer unit tests to verify functionality.
Documentation
Milestone number and name: Fixed Wing Milestone 2
Link to Asana task: https://app.asana.com/0/1203458353737758/board
Link to Confluence documentation: https://uwarg-docs.atlassian.net/wiki/spaces/ZP/pages/2251980914/RDF+900
Reminders
Integration testing
Update confluence documentation
Add reviewers to the PR
Mention the PR in the appropriate discord channel