mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 14:53:03 +00:00
stm32: time_driver: allow use of TIM1 for driver
This commit is contained in:
parent
f77d59500e
commit
a11e3146f8
@ -130,6 +130,8 @@ _time-driver = ["dep:embassy-time-driver", "time"]
|
||||
|
||||
## Use any time driver
|
||||
time-driver-any = ["_time-driver"]
|
||||
## Use TIM1 as time driver
|
||||
time-driver-tim1 = ["_time-driver"]
|
||||
## Use TIM2 as time driver
|
||||
time-driver-tim2 = ["_time-driver"]
|
||||
## Use TIM3 as time driver
|
||||
|
@ -38,7 +38,7 @@ cfg_if::cfg_if! {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(time_drvier_tim1)]
|
||||
#[cfg(time_driver_tim1)]
|
||||
type T = peripherals::TIM1;
|
||||
#[cfg(time_driver_tim2)]
|
||||
type T = peripherals::TIM2;
|
||||
|
Loading…
Reference in New Issue
Block a user