japaric / stm32f30x-hal

Implementation of the `embedded-hal` traits for STM32F30x microcontrollers
Apache License 2.0
35 stars 37 forks source link

InputPin not implemented for PA0 (and probably others) #35

Open leshow opened 5 years ago

leshow commented 5 years ago

I was told on the embedded rust matrix chat that this crate is no longer used with the advent of stm32f3xx_hal, so I've used that crate instead to get around the issue. This crate isn't listed as deprecated though, and there's no link on the README that I can see to go and use stm32f3xx_hal.

I'm happy to either submit a PR to implement InputPin for PA0 and the others (you can see that it's not available here) or submit a PR amending documentation, or anything else.

Let me know how I can help, cheers.

leshow commented 5 years ago

Ah, I see there is a PR for it already https://github.com/japaric/stm32f30x-hal/pull/16/files

little-arhat commented 5 years ago

Hi, @leshow! I don't think this repo is maintained, there are at least two alternatives, however:

https://github.com/stm32-rs/stm32f3xx-hal (that provides API similar to this crate);

https://github.com/copterust/alt-stm32f30x-hal/ (with slightly different API, that supposed to be a bit more ergonomic).

leshow commented 5 years ago

Thanks! I have started using stm32f3xx-hal, it would be nice if this crate either accepted the PRs that fix issues with it, or say that it's no longer maintained.

I found it because the discovery book uses it, that should also be updated, since it's probably many people's entry point into embedded rust.