File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ impl HrControltExt for HRTIM_COMMON {
77
77
rcc. enable ( ) . reset ( ) ;
78
78
79
79
// Start calibration procedure
80
+ #[ cfg( not( feature = "stm32h7" ) ) ]
80
81
common
81
82
. dllcr ( )
82
83
. write ( |w| w. cal ( ) . set_bit ( ) . calen ( ) . clear_bit ( ) ) ;
@@ -173,6 +174,7 @@ impl HrTimOngoingCalibration {
173
174
// Enable periodic calibration
174
175
// with f_hrtim at 170MHz, these settings leads to
175
176
// a period of about 6.2ms
177
+ #[ cfg( not( feature = "stm32h7" ) ) ]
176
178
common
177
179
. dllcr ( )
178
180
. modify ( |_r, w| w. calrte ( ) . bits ( 0b00 ) . cal ( ) . set_bit ( ) . calen ( ) . clear_bit ( ) ) ;
@@ -215,9 +217,12 @@ impl HrTimOngoingCalibration {
215
217
}
216
218
217
219
pub fn wait_for_calibration ( self ) -> ( HrTimCalibrated , FaultInputs , EevInputs ) {
218
- let common = unsafe { & * HRTIM_COMMON :: ptr ( ) } ;
219
- while common. isr ( ) . read ( ) . dllrdy ( ) . bit_is_clear ( ) {
220
- // Wait until ready
220
+ #[ cfg( not( feature = "stm32h7" ) ) ]
221
+ {
222
+ let common = unsafe { & * HRTIM_COMMON :: ptr ( ) } ;
223
+ while common. isr ( ) . read ( ) . dllrdy ( ) . bit_is_clear ( ) {
224
+ // Wait until ready
225
+ }
221
226
}
222
227
223
228
// Calibration is now done, it is safe to continue
You can’t perform that action at this time.
0 commit comments