From b4addbdade84dcbd693b1ff5ad44866403c8fcb9 Mon Sep 17 00:00:00 2001 From: gornekich <44112859+gornekich@users.noreply.github.com> Date: Sun, 18 Apr 2021 12:49:22 +0300 Subject: [PATCH] [FL-1137] one_wire_slave: disable exti interrupt after emulation (#412) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: あく --- lib/onewire/one_wire_slave.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/onewire/one_wire_slave.cpp b/lib/onewire/one_wire_slave.cpp index 47c60920..aaed1de6 100644 --- a/lib/onewire/one_wire_slave.cpp +++ b/lib/onewire/one_wire_slave.cpp @@ -20,6 +20,11 @@ void OneWireSlave::start(void) { void OneWireSlave::stop(void) { // deinit gpio gpio_init_ex(one_wire_pin_record, GpioModeInput, GpioPullNo, GpioSpeedLow); + // TODO change after gpio rework + // Clear EXTI registers + LL_EXTI_DisableRisingTrig_0_31(LL_EXTI_LINE_14); + LL_EXTI_DisableFallingTrig_0_31(LL_EXTI_LINE_14); + LL_EXTI_DisableIT_0_31(LL_EXTI_LINE_14); // remove exti interrupt api_interrupt_remove(exti_cb, InterruptTypeExternalInterrupt);