Suppress "unused" warnings.
This commit is contained in:
parent
ec4cffe28c
commit
583555bc8a
1 changed files with 6 additions and 5 deletions
|
@ -13,7 +13,6 @@ use embassy_usb_driver::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{DmPin, DpPin, Instance};
|
use super::{DmPin, DpPin, Instance};
|
||||||
use crate::gpio::sealed::AFType;
|
|
||||||
use crate::interrupt::typelevel::Interrupt;
|
use crate::interrupt::typelevel::Interrupt;
|
||||||
use crate::pac::usb::regs;
|
use crate::pac::usb::regs;
|
||||||
use crate::pac::usb::vals::{EpType, Stat};
|
use crate::pac::usb::vals::{EpType, Stat};
|
||||||
|
@ -287,10 +286,12 @@ impl<'d, T: Instance> Driver<'d, T> {
|
||||||
regs.btable().write(|w| w.set_btable(0));
|
regs.btable().write(|w| w.set_btable(0));
|
||||||
|
|
||||||
#[cfg(not(stm32l1))]
|
#[cfg(not(stm32l1))]
|
||||||
dp.set_as_af(dp.af_num(), AFType::OutputPushPull);
|
{
|
||||||
|
dp.set_as_af(dp.af_num(), crate::gpio::sealed::AFType::OutputPushPull);
|
||||||
#[cfg(not(stm32l1))]
|
dm.set_as_af(dm.af_num(), crate::gpio::sealed::AFType::OutputPushPull);
|
||||||
dm.set_as_af(dm.af_num(), AFType::OutputPushPull);
|
}
|
||||||
|
#[cfg(stm32l1)]
|
||||||
|
let _ = (dp, dm); // suppress "unused" warnings.
|
||||||
|
|
||||||
// Initialize the bus so that it signals that power is available
|
// Initialize the bus so that it signals that power is available
|
||||||
BUS_WAKER.wake();
|
BUS_WAKER.wake();
|
||||||
|
|
Loading…
Add table
Reference in a new issue