Get rid of some warnings
This commit is contained in:
@ -19,7 +19,7 @@ pub struct ExtiManager {
|
||||
|
||||
impl<'a> ExtiManager {
|
||||
pub fn new(_exti: EXTI, syscfg: SysCfg) -> Self {
|
||||
Self { syscfg: syscfg }
|
||||
Self { syscfg }
|
||||
}
|
||||
|
||||
pub fn new_pin<T, I>(&'static mut self, mut pin: T, interrupt: I) -> ExtiPin<T, I>
|
||||
@ -30,8 +30,8 @@ impl<'a> ExtiManager {
|
||||
pin.make_interrupt_source(&mut self.syscfg);
|
||||
|
||||
ExtiPin {
|
||||
pin: pin,
|
||||
interrupt: interrupt,
|
||||
pin,
|
||||
interrupt,
|
||||
_mgr: self,
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
#![macro_use]
|
||||
#![allow(clippy::module_inception)]
|
||||
|
||||
#[cfg(all(feature = "defmt", feature = "log"))]
|
||||
compile_error!("You may not enable both `defmt` and `log` features.");
|
||||
|
@ -2,7 +2,6 @@
|
||||
#![feature(generic_associated_types)]
|
||||
#![feature(asm)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
#![feature(let_chains)]
|
||||
|
||||
#[cfg(not(any(
|
||||
feature = "stm32f401",
|
||||
|
@ -7,32 +7,21 @@
|
||||
use core::future::Future;
|
||||
use core::ptr;
|
||||
use core::sync::atomic::{self, Ordering};
|
||||
use core::task::{Context, Poll};
|
||||
|
||||
use embassy::interrupt::OwnedInterrupt;
|
||||
use embassy::uart::{Error, Uart};
|
||||
use embassy::util::Signal;
|
||||
use embedded_dma::StaticWriteBuffer;
|
||||
|
||||
use crate::hal::dma::config::DmaConfig;
|
||||
use crate::hal::dma::traits::{PeriAddress, Stream};
|
||||
use crate::hal::dma::{
|
||||
Channel4, MemoryToPeripheral, PeripheralToMemory, Stream2, Stream7, StreamsTuple, Transfer,
|
||||
};
|
||||
use crate::hal::gpio::gpioa::{PA10, PA9};
|
||||
use crate::hal::gpio::{Alternate, AF7};
|
||||
use crate::hal::prelude::*;
|
||||
use crate::hal::dma::{Stream2, Stream7, StreamsTuple, Transfer};
|
||||
use crate::hal::rcc::Clocks;
|
||||
use crate::hal::serial::config::{
|
||||
Config as SerialConfig, DmaConfig as SerialDmaConfig, Parity, StopBits, WordLength,
|
||||
};
|
||||
use crate::hal::serial::config::{Config as SerialConfig, DmaConfig as SerialDmaConfig};
|
||||
use crate::hal::serial::Pins;
|
||||
use crate::hal::serial::{Event as SerialEvent, Serial as HalSerial};
|
||||
use crate::hal::time::Bps;
|
||||
|
||||
use crate::interrupt;
|
||||
|
||||
use crate::pac::Interrupt;
|
||||
use crate::pac::{DMA2, USART1};
|
||||
|
||||
/// Interface to the Serial peripheral
|
||||
|
Reference in New Issue
Block a user