[FL-1137] one_wire_slave: disable exti interrupt after emulation (#412)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
gornekich 2021-04-18 12:49:22 +03:00 committed by GitHub
parent 6204c61cee
commit b4addbdade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,11 @@ void OneWireSlave::start(void) {
void OneWireSlave::stop(void) { void OneWireSlave::stop(void) {
// deinit gpio // deinit gpio
gpio_init_ex(one_wire_pin_record, GpioModeInput, GpioPullNo, GpioSpeedLow); 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 // remove exti interrupt
api_interrupt_remove(exti_cb, InterruptTypeExternalInterrupt); api_interrupt_remove(exti_cb, InterruptTypeExternalInterrupt);