hackndev / zinc

The bare metal stack for rust
zinc.rs
Apache License 2.0
1k stars 100 forks source link

SPI on STM32F4 + example #343

Open rvlander opened 9 years ago

rvlander commented 9 years ago

I reused code from stm32l1, adapted it and wrote an new example. More testing is needed. There was also a typo (copy/paste) bug in peripheral_clock.rs.

Maybe a refactor should be done to factorize common code between stm32 mcus. Are there any plans regarding this?

rvlander commented 9 years ago

TODO: update AltMode enum in pin.rs.

farcaller commented 9 years ago

A refactor would surely be welcome from someone who has good understanding of STM MCUs, I'm absolutely willing to give up that tree for maintenance.