stm32: time_driver: allow use of TIM1 for driver
This commit is contained in:
parent
f77d59500e
commit
a11e3146f8
2 changed files with 3 additions and 1 deletions
|
@ -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 a new issue