stm32: fix usb
This commit is contained in:
@ -46,6 +46,6 @@ embedded-hal = { version = "0.2.4" }
|
||||
embedded-dma = { version = "0.1.2" }
|
||||
bxcan = "0.5.0"
|
||||
nb = "*"
|
||||
stm32f4xx-hal = { version = "0.9.0", features = ["rt", "can"], optional = true }
|
||||
stm32f4xx-hal = { version = "0.9.0", features = ["rt", "can", "usb_fs"], optional = true }
|
||||
stm32l0xx-hal = { version = "0.7.0", features = ["rt"], optional = true }
|
||||
futures = { version = "0.3.5", default-features = false, features = ["async-await"] }
|
@ -1,8 +1,8 @@
|
||||
use crate::hal::bb;
|
||||
use crate::hal::rcc::Clocks;
|
||||
use core::cell::Cell;
|
||||
use core::convert::TryInto;
|
||||
use core::sync::atomic::{compiler_fence, AtomicU32, Ordering};
|
||||
use stm32f4xx_hal::bb;
|
||||
use stm32f4xx_hal::rcc::Clocks;
|
||||
|
||||
use embassy::interrupt::InterruptExt;
|
||||
use embassy::time::{Clock, TICKS_PER_SECOND};
|
||||
@ -259,7 +259,7 @@ macro_rules! impl_timer {
|
||||
($module:ident: ($TYPE:ident, $INT:ident, $apbenr:ident, $enrbit:expr, $apbrstr:ident, $rstrbit:expr, $ppre:ident, $pclk: ident), 3) => {
|
||||
mod $module {
|
||||
use super::*;
|
||||
use stm32f4xx_hal::pac::{$TYPE, RCC};
|
||||
use crate::hal::pac::{$TYPE, RCC};
|
||||
|
||||
impl sealed::Sealed for $TYPE {}
|
||||
|
||||
@ -376,7 +376,7 @@ macro_rules! impl_timer {
|
||||
($module:ident: ($TYPE:ident, $INT:ident, $apbenr:ident, $enrbit:expr, $apbrstr:ident, $rstrbit:expr, $ppre:ident, $pclk: ident), 1) => {
|
||||
mod $module {
|
||||
use super::*;
|
||||
use stm32f4xx_hal::pac::{$TYPE, RCC};
|
||||
use crate::hal::pac::{$TYPE, RCC};
|
||||
|
||||
impl sealed::Sealed for $TYPE {}
|
||||
|
||||
|
Reference in New Issue
Block a user