#Issue 1974 fix more warnings treated as errors
This commit is contained in:
parent
5c8c1b2146
commit
6cdee93934
2 changed files with 10 additions and 2 deletions
|
@ -97,7 +97,7 @@ fn setup_i2s_pll(vco_in: u32, plli2s: Option<u32>) -> Option<u32> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(any(stm32f427, stm32f429, stm32f437, stm32f439, stm32f446, stm32f469, stm32f479)))]
|
#[cfg(not(any(stm32f427, stm32f429, stm32f437, stm32f439, stm32f446, stm32f469, stm32f479)))]
|
||||||
fn setup_sai_pll(vco_in: u32, _pllsai: Option<u32>) -> Option<u32> {
|
fn setup_sai_pll(_vco_in: u32, _pllsai: Option<u32>) -> Option<u32> {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
use embassy_embedded_hal::SetConfig;
|
use embassy_embedded_hal::SetConfig;
|
||||||
use embassy_hal_internal::{into_ref, PeripheralRef};
|
use embassy_hal_internal::{into_ref, PeripheralRef};
|
||||||
|
|
||||||
use crate::dma::{Channel, ReadableRingBuffer, TransferOptions, WritableRingBuffer};
|
use crate::dma::{ringbuffer, Channel, ReadableRingBuffer, TransferOptions, WritableRingBuffer};
|
||||||
use crate::gpio::sealed::{AFType, Pin as _};
|
use crate::gpio::sealed::{AFType, Pin as _};
|
||||||
use crate::gpio::AnyPin;
|
use crate::gpio::AnyPin;
|
||||||
use crate::pac::sai::{vals, Sai as Regs};
|
use crate::pac::sai::{vals, Sai as Regs};
|
||||||
|
@ -17,6 +17,13 @@ pub use crate::dma::word;
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
NotATransmitter,
|
NotATransmitter,
|
||||||
NotAReceiver,
|
NotAReceiver,
|
||||||
|
OverrunError,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl From<ringbuffer::OverrunError> for Error {
|
||||||
|
fn from(_: ringbuffer::OverrunError) -> Self {
|
||||||
|
Self::OverrunError
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
@ -499,6 +506,7 @@ pub enum SubBlock {
|
||||||
|
|
||||||
enum RingBuffer<'d, C: Channel, W: word::Word> {
|
enum RingBuffer<'d, C: Channel, W: word::Word> {
|
||||||
Writable(WritableRingBuffer<'d, C, W>),
|
Writable(WritableRingBuffer<'d, C, W>),
|
||||||
|
#[allow(dead_code)] // remove this after implementing new_* functions for receiver
|
||||||
Readable(ReadableRingBuffer<'d, C, W>),
|
Readable(ReadableRingBuffer<'d, C, W>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue