stm32: time_driver: allow use of TIM1 for driver

This commit is contained in:
Torin Cooper-Bennun 2024-02-22 16:55:00 +00:00
parent f77d59500e
commit a11e3146f8
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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;