Skip to content

Gpio driver#353

Open
lxuxx wants to merge 5 commits into
OpenPRoT:mainfrom
lxuxx:gpio
Open

Gpio driver#353
lxuxx wants to merge 5 commits into
OpenPRoT:mainfrom
lxuxx:gpio

Conversation

@lxuxx

@lxuxx lxuxx commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Add gpio driver and tests.

rusty1968 and others added 4 commits July 17, 2026 13:49
Add gpio peripheral driver to ast10x0_peripherals crate, ported from
aspeed-rust/src/gpio.rs. Follows the crate's established driver pattern:

- types.rs: type states (Input, Output, PushPull, OpenDrain, PullUp,
  PullDown, Floating, Tristate), mode traits, InterruptMode, GpioExt,
  GpioError
- registers.rs: GpioRegisters wrapping *const gpio::RegisterBlock with
  PhantomData<*const ()>, unsafe new(ptr) and new_global() constructors
- mod.rs: gpio_macro! adapted to use GpioRegisters; all 21 bank
  instantiations A-U

Update lib.rs and BUILD.bazel accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants