diff options
| -rw-r--r-- | embassy-stm32/src/dma/ringbuffer/mod.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/embassy-stm32/src/dma/ringbuffer/mod.rs b/embassy-stm32/src/dma/ringbuffer/mod.rs index 2d61204a2..659ffa9e5 100644 --- a/embassy-stm32/src/dma/ringbuffer/mod.rs +++ b/embassy-stm32/src/dma/ringbuffer/mod.rs | |||
| @@ -3,14 +3,6 @@ use core::task::{Poll, Waker}; | |||
| 3 | 3 | ||
| 4 | use crate::dma::word::Word; | 4 | use crate::dma::word::Word; |
| 5 | 5 | ||
| 6 | /// The current buffer half (e.g. for DMA or the user application). | ||
| 7 | #[derive(Debug, PartialEq, PartialOrd)] | ||
| 8 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 9 | enum BufferHalf { | ||
| 10 | First, | ||
| 11 | Second, | ||
| 12 | } | ||
| 13 | |||
| 14 | pub trait DmaCtrl { | 6 | pub trait DmaCtrl { |
| 15 | /// Get the NDTR register value, i.e. the space left in the underlying | 7 | /// Get the NDTR register value, i.e. the space left in the underlying |
| 16 | /// buffer until the dma writer wraps. | 8 | /// buffer until the dma writer wraps. |
