Skip to content

Commit 3d5d060

Browse files
committed
Re-export pin types from gpio
Now pins can be accessed using, for example, `crate::gpio::PA1` instead of `crate::gpio::gpioa::PA1`. The names are already unambigous, and not only can this make all imports slighly more convenient, it can also help cut down a lot on use statements required for macro-generated code.
1 parent 0fac052 commit 3d5d060

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gpio.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,10 @@ macro_rules! gpio {
731731
}
732732
)+
733733
}
734+
735+
pub use $gpiox::{
736+
$($PXi,)*
737+
};
734738
}
735739
}
736740

0 commit comments

Comments
 (0)