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

Add more tests #212

Merged
merged 33 commits into from Jun 14, 2021
Merged

Add more tests #212

merged 33 commits into from Jun 14, 2021

Conversation

Sh3Rm4n
Copy link
Member

@Sh3Rm4n Sh3Rm4n commented Mar 28, 2021

With focus on gpio tests for now. This is very much WIP.

I'd like to release a new version of this crate soon, but I'd also like to reduce the smoke-testing work (which I've done for 0.6.0 in #177) while automating some testing.

  • fix open drain test
  • add serial test
  • add spi test
  • add i2c test (if it is feasible, because slave is not implemented IIRC)
  • make sure testsuite is build on CI

Sh3Rm4n and others added 18 commits June 14, 2021 08:57
The extension trait is now only implemented
for `u32`, so defining the type is not needed anymore and can be
inferred.
In addition to the changes, test them
As this section gets bigger, I moved it into its own README.md in
testsuite/.
Even after unplugging my STM32F3DISCOVERY MB1035D for several hours, I'm
getting a noise error in this test case.
When using flip-link for stack overflow protection, it parses the linker
scripts/fragments for RAM memory addresses and expects the keywords
'ORIGIN' and 'LENGTH' to be used in its verbose form. Allow
friction-less integration of flip-link and this crate by using the
verbose form.
Sh3Rm4n referenced this pull request in sirhcel/stm32f3xx-hal Jun 14, 2021
This struct could be converted from a Baud value already used in
exisiting code and should therefor not break it.
@Sh3Rm4n
Copy link
Member Author

Sh3Rm4n commented Jun 14, 2021

SPI and I2C will have to wait for later PRs. This includes slight changes to watchdog and adc, which I did not expect. So to not blow this PR up anymore, I'll keep it as is

@Sh3Rm4n Sh3Rm4n merged commit 052411d into stm32-rs:master Jun 14, 2021
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.

None yet

2 participants