This commit is contained in:
Eekle 2024-06-23 16:54:10 +02:00
parent 2655426cd8
commit 7eb605d116
2 changed files with 6 additions and 9 deletions

View File

@ -65,19 +65,18 @@
/// Enums defined for peripheral parameters /// Enums defined for peripheral parameters
pub mod enums; pub mod enums;
use core::future::poll_fn;
use core::marker::PhantomData; use core::marker::PhantomData;
use core::task::Poll;
use embassy_hal_internal::{into_ref, PeripheralRef}; use embassy_hal_internal::{into_ref, PeripheralRef};
use embassy_sync::waitqueue::AtomicWaker;
pub use enums::*; pub use enums::*;
use crate::gpio::{AfType, AnyPin, OutputType, Speed}; use crate::gpio::{AfType, AnyPin, OutputType, Speed};
use crate::interrupt;
use crate::interrupt::typelevel::Interrupt; use crate::interrupt::typelevel::Interrupt;
use crate::rcc::{self, RccPeripheral}; use crate::rcc::{self, RccPeripheral};
use crate::{peripherals, Peripheral}; use crate::{interrupt, peripherals, Peripheral};
use core::future::poll_fn;
use core::task::Poll;
use embassy_sync::waitqueue::AtomicWaker;
#[cfg(tsc_v1)] #[cfg(tsc_v1)]
const TSC_NUM_GROUPS: u32 = 6; const TSC_NUM_GROUPS: u32 = 6;

View File

@ -2,10 +2,8 @@
#![no_main] #![no_main]
use defmt::*; use defmt::*;
use embassy_stm32::{ use embassy_stm32::bind_interrupts;
bind_interrupts, use embassy_stm32::tsc::{self, *};
tsc::{self, *},
};
use embassy_time::Timer; use embassy_time::Timer;
use {defmt_rtt as _, panic_probe as _}; use {defmt_rtt as _, panic_probe as _};