Skip to content

Commit

Permalink
fix: document fixes, derive Debug for AsyncSerial, remove feature noo…
Browse files Browse the repository at this point in the history
…p_waker

Signed-off-by: Zhouqi Jiang <[email protected]>
  • Loading branch information
luojia65 committed Dec 16, 2024
1 parent 1a354d2 commit 81bd39e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bouffalo-hal/src/sdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ impl Command {
}
/// Set this bit to 0 for the following:
/// (1) Commands using only CMD line (ex.CMD52).
/// (2) Commands with no data transfer but using busy signal on DAT[0] line (R1b or R5b ex. CMD38).
/// (2) Commands with no data transfer but using busy signal on DAT\[0\] line (R1b or R5b ex. CMD38).
/// (3) Resume command.
#[inline]
pub const fn unset_data_present(self) -> Self {
Expand Down
2 changes: 2 additions & 0 deletions bouffalo-hal/src/uart/asynch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use core::{
};

/// Managed async/await serial peripheral.
#[derive(Debug)]
pub struct AsyncSerial<UART, PADS> {
uart: UART,
pads: PADS,
Expand Down Expand Up @@ -59,6 +60,7 @@ impl<UART: Deref<Target = RegisterBlock>, PADS> AsyncSerial<UART, PADS> {
}

/// Set of wakers as the state for an async/await serial peripheral.
#[derive(Debug)]
pub struct SerialState {
transmit_ready: atomic_waker::AtomicWaker,
receive_ready: atomic_waker::AtomicWaker,
Expand Down
2 changes: 1 addition & 1 deletion bouffalo-rt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ crc = "3.2.1"
cfg-if = "1.0.0"
embedded-time = "0.12.1"
plic = "0.0.2"
xuantie-riscv = { git = "https://github.com/rustsbi/xuantie", commit = "fe7ec712" }
xuantie-riscv = { git = "https://github.com/rustsbi/xuantie", rev = "fe7ec712" }

[dev-dependencies]
memoffset = "0.9.1"
Expand Down
1 change: 0 additions & 1 deletion examples/peripherals/uart-async-demo/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(noop_waker)]
#![no_std]
#![no_main]

Expand Down

0 comments on commit 81bd39e

Please sign in to comment.