Explorar o código

gblink: exti_workaround: add comment

Signed-off-by: Kris Bahnsen <Kris@KBEmbedded.com>
Kris Bahnsen hai 1 ano
pai
achega
aff6c73bf1
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      gblink/exti_workaround.c

+ 4 - 0
gblink/exti_workaround.c

@@ -130,6 +130,10 @@ void *exti_workaround(const GpioPin *clk, void (*isr_callback)(void *context), v
 	 * really never change through the life of the flipper OS. But for safety
 	 * we always save them rather than just blindly restoring the same settings
 	 * back when we undo this later.
+	 *
+	 * Note that these are clobbered by calls to furi_hal_gpio_init() which
+	 * can and should happen after this workaround function exits. They can
+	 * be set and unset without worry of clobbering the FURI private IRQ info.
 	 */
 	work->exti3_rise_enable = LL_EXTI_IsEnabledRisingTrig_0_31(LL_EXTI_LINE_3);
 	work->exti3_fall_enable = LL_EXTI_IsEnabledFallingTrig_0_31(LL_EXTI_LINE_3);