From 2fc42e07f235e42cb589bfb72c492013e5e54206 Mon Sep 17 00:00:00 2001 From: Mathias Gottschlag Date: Fri, 1 Oct 2021 08:47:16 +0200 Subject: [PATCH] pio: Rename read_rx/write_tx to read/write. --- rp2040-hal/src/pio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rp2040-hal/src/pio.rs b/rp2040-hal/src/pio.rs index 498b1fe..998db63 100644 --- a/rp2040-hal/src/pio.rs +++ b/rp2040-hal/src/pio.rs @@ -626,7 +626,7 @@ impl Rx { /// Get the next element from RX FIFO. /// /// Returns `None` if the FIFO is empty. - pub fn read_rx(&mut self) -> Option { + pub fn read(&mut self) -> Option { // Safety: The register is never written by software. let is_empty = unsafe { &*self.block }.fstat.read().rxempty().bits() & (1 << SM::id()) != 0; @@ -649,7 +649,7 @@ impl Tx { /// Write an element to TX FIFO. /// /// Returns `true` if the value was written to FIFO, `false` otherwise. - pub fn write_tx(&mut self, value: u32) -> bool { + pub fn write(&mut self, value: u32) -> bool { // Safety: The register is never written by software. let is_full = unsafe { &*self.block }.fstat.read().txfull().bits() & (1 << SM::id()) != 0;