aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-rp/src/pio/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/embassy-rp/src/pio/mod.rs b/embassy-rp/src/pio/mod.rs
index 2e5c57a26..1f7adbda3 100644
--- a/embassy-rp/src/pio/mod.rs
+++ b/embassy-rp/src/pio/mod.rs
@@ -324,6 +324,10 @@ impl<'d, PIO: Instance, const SM: usize> StateMachineRx<'d, PIO, SM> {
324 } 324 }
325 325
326 /// Pull data from RX FIFO. 326 /// Pull data from RX FIFO.
327 ///
328 /// This function doesn't check if there is data available to be read.
329 /// If the rx FIFO is empty, an undefined value is returned. If you only
330 /// want to pull if data is available, use `try_pull` instead.
327 pub fn pull(&mut self) -> u32 { 331 pub fn pull(&mut self) -> u32 {
328 PIO::PIO.rxf(SM).read() 332 PIO::PIO.rxf(SM).read()
329 } 333 }