Skip to content

Commit a86d466

Browse files
author
Marwan SMOUNI
committed
choosing a version for stm32f7
1 parent 182b5db commit a86d466

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pub mod qspi;
154154
#[cfg(any(feature = "stm32f765", feature = "stm32f767", feature = "stm32f769"))]
155155
pub mod adc;
156156

157-
#[cfg(any(feature = "stm32f765", feature = "stm32f767", feature = "stm32f769"))]
157+
#[cfg(any(feature = "stm32f767", feature = "stm32f769"))]
158158
pub mod qei;
159159

160160
#[cfg(feature = "ltdc")]

src/qei.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
//! Quadrature Encoder Interface API
22
33
use crate::rcc::APB1;
4+
#[cfg(feature = "stm32f767")]
45
use stm32f7::stm32f7x7::{TIM2, TIM3, TIM4, TIM5};
56

7+
#[cfg(feature = "stm32f769")]
8+
use stm32f7::stm32f7x9::{TIM2, TIM3, TIM4, TIM5};
9+
610
#[derive(Debug)]
711
pub enum Direction {
812
Upcounting,

0 commit comments

Comments
 (0)