File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
ports/atmel-samd/common-hal/pulseio Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,9 @@ void common_hal_pulseio_pulsein_deinit(pulseio_pulsein_obj_t *self) {
272
272
void common_hal_pulseio_pulsein_pause (pulseio_pulsein_obj_t * self ) {
273
273
uint32_t mask = 1 << self -> channel ;
274
274
EIC -> INTENCLR .reg = mask << EIC_INTENSET_EXTINT_Pos ;
275
+ #ifdef SAMD21
276
+ rtc_end_pulse ();
277
+ #endif
275
278
}
276
279
277
280
void common_hal_pulseio_pulsein_resume (pulseio_pulsein_obj_t * self ,
@@ -299,6 +302,9 @@ void common_hal_pulseio_pulsein_resume(pulseio_pulsein_obj_t *self,
299
302
EIC -> INTFLAG .reg = mask << EIC_INTFLAG_EXTINT_Pos ;
300
303
EIC -> INTENSET .reg = mask << EIC_INTENSET_EXTINT_Pos ;
301
304
305
+ #ifdef SAMD21
306
+ rtc_start_pulse ();
307
+ #endif
302
308
pulsein_set_config (self , true);
303
309
}
304
310
You can’t perform that action at this time.
0 commit comments