-
Notifications
You must be signed in to change notification settings - Fork 241
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
Examples and test cleanup #1590
Conversation
Are the deleted examples going to become tests? Otherwise I don't see benefit in losing them. The eh1 SPI examples, aren't they useful to demonstrate how to get from a HAL type to an eh1 trait object? (I'm a bit biased since I'm trying to avoid merge conflicts 😅) |
Most already are, at least the crypto stuff is tested, and I converted the direct vectoring example to an interrupt latency test. The other examples IMO do not add that much value, I don't personally see the value in an example that does the same as another but imports eh to do so. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks!
* initial cull of examples * Remove direct vector example, replace with interrupt latency test * Remove clock monitor in favour of just a test --------- Co-authored-by: Jesse Braham <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
7734644
to
16695e7
Compare
16695e7
to
b2aa8f5
Compare
b2aa8f5
to
14d0c6e
Compare
* initial cull of examples * Remove direct vector example, replace with interrupt latency test * Remove clock monitor in favour of just a test
This test seems pretty flaky, maybe we should skip it for the time being, just for the sake of getting the other changes merged? |
The thing is I'm quite confused as to why there is more latency than I see running it locally 🤔. I thought about doing a few runs, but actually, the first-time latency is an important metric in its own right. I think I'll just set a high enough number for now so that it passes; it will still catch interrupts not working at all for example as the test will time out. |
14d0c6e
to
4b976e7
Compare
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packages
command to ensure that all changed code is formatted correctly.CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
Closes #1436
Opening a bit before finishing (I plan on polishing some of the remaining examples) but I wanted to get opinions on the examples I nuked, and the ones I've kept so far.