mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Did run cargo +nightly fmt to solve formatting issues
This commit is contained in:
parent
b34564ad52
commit
143670d05e
@ -1,6 +1,9 @@
|
||||
//! Simple PWM driver.
|
||||
|
||||
use core::future::Future;
|
||||
use core::marker::PhantomData;
|
||||
use core::pin::Pin;
|
||||
use core::task::{Context, Poll};
|
||||
|
||||
use embassy_hal_internal::{into_ref, PeripheralRef};
|
||||
|
||||
@ -10,9 +13,6 @@ use crate::gpio::{AfType, AnyPin, OutputType, Speed};
|
||||
use crate::interrupt::typelevel::Interrupt;
|
||||
use crate::time::Hertz;
|
||||
use crate::Peripheral;
|
||||
use core::future::Future;
|
||||
use core::pin::Pin;
|
||||
use core::task::{Context, Poll};
|
||||
|
||||
/// Channel 1 marker type.
|
||||
pub enum Ch1 {}
|
||||
|
@ -1,6 +1,5 @@
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
use crate::peripherals::TIM3;
|
||||
use defmt::*;
|
||||
use embassy_executor::Spawner;
|
||||
use embassy_stm32::gpio::{Level, Output, OutputType, Speed};
|
||||
@ -12,6 +11,8 @@ use embassy_stm32::{bind_interrupts, peripherals};
|
||||
use embassy_time::Timer;
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
use crate::peripherals::TIM3;
|
||||
|
||||
// This test is meant for the target nucleo G070 RB
|
||||
// On arduino pin d4 (pb5) a pwm signal of 1.0 hz can me measured, with increasing duty cycle
|
||||
// On each update interrupt arduino pin d5 (pb4) will be made high for 1 ms.
|
||||
|
Loading…
Reference in New Issue
Block a user