Просмотр исходного кода

gblink: exti_workaround: add comment

Signed-off-by: Kris Bahnsen <Kris@KBEmbedded.com>
Kris Bahnsen 1 год назад
Родитель
Сommit
aff6c73bf1
1 измененных файлов с 4 добавлено и 0 удалено
  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
 	 * 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
 	 * we always save them rather than just blindly restoring the same settings
 	 * back when we undo this later.
 	 * 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_rise_enable = LL_EXTI_IsEnabledRisingTrig_0_31(LL_EXTI_LINE_3);
 	work->exti3_fall_enable = LL_EXTI_IsEnabledFallingTrig_0_31(LL_EXTI_LINE_3);
 	work->exti3_fall_enable = LL_EXTI_IsEnabledFallingTrig_0_31(LL_EXTI_LINE_3);