I'm working on an
embedded-hal implementation for the STM32F2 series of microcontrollers. I'm working on a fork of GitHub - mike7b4/stm32f2xx-hal: stm32f2xx Hardware abstraction layer since the author let me know that he doesn't have time at the moment to maintain or develop the crate. My fork is located at GitHub - L0uisc/stm32f2xx-hal: stm32f2xx Hardware abstraction layer
I'm noticing the
time.rs module. It's copied from the
stm32f4xx-hal crate. I think it is a really good module to make typesafe wrapper newtypes around integers to use for all kinds of timing-related values in microcontrollers.
Now my question is, does such a crate already exist? If so, where? If not, what would be the procedure to publish that file as a crate. Obviously, it would need to be published under the same license as the original.
One option is of course to implement the generic API in
embedded-hal, but then lower-level crates miss out on it.
What do you think is the best way forward?