peripherals/gpio: port AST1060 GPIO driver from aspeed-rust 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.
The OpenPRoT Technical Charter can be found at https://github.com/OpenPRoT/.github/blob/main/GOVERNANCE.md
NOTE: We are converting our build system to bazel. We recommend installing bazelisk to automatically manage bazel versions.
You can run tasks using the Pigweed workflow launcher pw or bazel.
./pw presubmit - Run presubmit checks: formatting, license checks, C/C++ header checks and clippy../pw format - Run the code formatters.bazel test //... - Run all tests.bazel build //docs - Build documentation.The project is structured as a bazel module.
No additional tools are required - all dependencies are managed by bazel.