Skip to content

Commit

Permalink
gpio: rearrange module to split version 1 and version 2 code
Browse files Browse the repository at this point in the history
Signed-off-by: Zhouqi Jiang <[email protected]>
  • Loading branch information
luojia65 committed Dec 19, 2024
1 parent 774c10f commit 0714b1c
Show file tree
Hide file tree
Showing 9 changed files with 861 additions and 556 deletions.
11 changes: 11 additions & 0 deletions bouffalo-hal/src/glb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ pub enum Drive {
/// Drive strength 3.
Drive3 = 3,
}

cfg_if::cfg_if! {
if #[cfg(feature = "glb-v1")] {
pub use v1::RegisterBlock;
} else if #[cfg(feature = "glb-v2")] {
pub use v2::RegisterBlock;
} else {
/// Global configuration registers.
pub struct RegisterBlock {}
}
}
Loading

0 comments on commit 0714b1c

Please sign in to comment.