Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uart: refactor uart module to build async/await serial structure #9

Merged
merged 7 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/Cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
matrix:
TARGET: [riscv64imac-unknown-none-elf]
TOOLCHAIN: [nightly]
EXAMPLES: [gpio-demo, i2c-demo, jtag-demo, lz4d-demo, psram-demo, pwm-demo,
sdcard-demo, sdcard-gpt-demo, spi-demo, uart-demo]
EXAMPLES: [gpio-demo, i2c-demo, jtag-demo, lz4d-demo, pwm-demo,
sdcard-demo, sdcard-gpt-demo, spi-demo, uart-demo, uart-async-demo, uart-cli-demo]
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ MATRIX.TARGET }}
toolchain: ${{ MATRIX.TOOLCHAIN }}
- name: Run build
run: cargo build --target ${{ MATRIX.TARGET }} --release -p ${{ MATRIX.EXAMPLES }}
run: cargo build --target ${{ MATRIX.TARGET }} --release -p ${{ MATRIX.EXAMPLES }}
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ members = [
"examples/peripherals/pwm-demo",
"examples/peripherals/spi-demo",
"examples/peripherals/uart-demo",
"examples/peripherals/uart-async-demo",
"examples/peripherals/uart-cli-demo",
"examples/peripherals/sdcard-demo",
"examples/peripherals/sdcard-gpt-demo",
Expand Down
2 changes: 2 additions & 0 deletions bouffalo-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ as-slice = "0.2.1"
nb = "1.1.0"
# For backward compatibility only.
embedded-hal-027 = { package = "embedded-hal", version = "0.2.7" }
embedded-io-async = "0.6.1"
atomic-waker = "1.1.2"

[dev-dependencies]
memoffset = "0.9.0"
Expand Down
1 change: 1 addition & 0 deletions bouffalo-hal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub mod prelude {
pub use embedded_hal::i2c::I2c as _;
pub use embedded_hal::pwm::SetDutyCycle as _;
pub use embedded_io::{Read as _, Write as _};
pub use embedded_io_async::{Read as _, Write as _};
}

/// Wrapper type for manipulations of a field in a register.
Expand Down
Loading
Loading