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 support for embedded-hal=1.0.0-alpha.10 - WIP #18

Closed
wants to merge 2 commits into from

Conversation

rursprung
Copy link
Collaborator

see individual commit messages for details

@rursprung
Copy link
Collaborator Author

@jasta if your HAL already supports embedded-hal=1.0.0-alpha.10 then this should resolve #8 for you. otherwise i'd suggest that you try to get support for it added to your HAL (see stm32-rs/stm32f4xx-hal#663 for how this can look like).

i'll merge this PR once the referenced libraries (stm32f4xx-hal & embedded-hal-mock) have new releases with the relevant code in it (i don't want to depend on git dependencies in a release).

@rursprung rursprung self-assigned this Jul 2, 2023
@rursprung rursprung added the dependencies Pull requests that update a dependency file label Jul 2, 2023
@rursprung rursprung added this to the release 1.0.0 milestone Jul 2, 2023
rursprung added 2 commits July 6, 2023 13:33
as this version of embedded-hal has added `SetDutyCycle` as the
equivalent / successor of the old `PwmPin` support for it can now be
added here.

open points:
* wait for a release of stm32f4xx-hal which includes the `SetDutyCycle`
  implementation (PR already merged)
* wait for a release of embedded-hal-mock which includes the
  `SetDutyCycle` implementation (PR currently open)

fixes #3
fixes #8
this ensures that all expected transactions have been done.
this has also uncovered that the expectations in
`test_motor_drive_invalid_speed` were wrong, which has now been fixed.
@rursprung
Copy link
Collaborator Author

this has been replaced with #25 which has now been released as v0.2.0. note that the new version only supports e-h 1.0.0-rc1

@rursprung rursprung closed this Nov 28, 2023
@rursprung rursprung deleted the add-eh1-support branch February 7, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implementation requires PwmPin<Duty=u16> but any Duty value would work support embedded-hal 1.0
1 participant