stm32/uart: feature-gate ringbuffer out when using gpdma, not supported yet.

This commit is contained in:
Dario Nieuwenhuis
2023-05-01 18:15:46 +02:00
parent 25864ae4dc
commit 96e8a7ddb9
4 changed files with 20 additions and 7 deletions

View File

@ -1,3 +1,5 @@
#![cfg_attr(gpdma, allow(unused))]
use core::ops::Range;
use core::sync::atomic::{compiler_fence, Ordering};

View File

@ -980,7 +980,10 @@ mod eio {
pub use buffered::*;
#[cfg(feature = "nightly")]
mod buffered;
#[cfg(not(gpdma))]
mod rx_ringbuffered;
#[cfg(not(gpdma))]
pub use rx_ringbuffered::RingBufferedUartRx;
#[cfg(usart_v1)]