hackndev / zinc

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

Use the GPIO trait on STM32F4's pin #325

Closed darayus closed 9 years ago

darayus commented 9 years ago

This changes the GPIO interface for the STM32F4 so that it uses the GPIO trait. set_direction only partially works as it does not update the Pin's internal function variable to the new mode. The set_direction function would need to take a &mut self for this to happen.

hacknbot commented 9 years ago

Can one of the admins verify this patch?

mcoffin commented 9 years ago

test this please

mcoffin commented 9 years ago

This also could be as good a time as any to try and roll over to the new ioreg! macro.

darayus commented 9 years ago

The indentation should be fixed now.

mcoffin commented 9 years ago

retest this please

mcoffin commented 9 years ago

LGTM. Thanks for the contributions!