rp/uart: rename state to buffered_state

we'll add a dma state soon as well.
This commit is contained in:
pennae
2023-05-01 15:22:39 +02:00
parent 1d2f6667df
commit 19588a9e6f
2 changed files with 14 additions and 14 deletions

View File

@ -763,7 +763,7 @@ mod sealed {
fn regs() -> pac::uart::Uart;
#[cfg(feature = "nightly")]
fn state() -> &'static buffered::State;
fn buffered_state() -> &'static buffered::State;
}
pub trait TxPin<T: Instance> {}
pub trait RxPin<T: Instance> {}
@ -801,7 +801,7 @@ macro_rules! impl_instance {
}
#[cfg(feature = "nightly")]
fn state() -> &'static buffered::State {
fn buffered_state() -> &'static buffered::State {
static STATE: buffered::State = buffered::State::new();
&STATE
}