From 81d227de730dbcd3ea70df2b4be273e7e6aed1d7 Mon Sep 17 00:00:00 2001 From: flom84 Date: Mon, 10 Oct 2022 20:55:44 +0200 Subject: [PATCH] Use types from circuitpython. --- ports/stm/peripherals/exti.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ports/stm/peripherals/exti.c b/ports/stm/peripherals/exti.c index a97de55531..861e5de0a6 100644 --- a/ports/stm/peripherals/exti.c +++ b/ports/stm/peripherals/exti.c @@ -26,6 +26,7 @@ #include #include "py/mpconfig.h" +#include "py/misc.h" #include "peripherals/exti.h" @@ -125,7 +126,7 @@ void EXTI4_IRQHandler(void) { #endif void EXTI9_5_IRQHandler(void) { uint32_t pending = EXTI->PR; - for (uint8_t i = 5; i <= 9; i++) { + for (uint i = 5; i <= 9; i++) { if (pending & (1 << i)) { stm_exti_callback[i](i); } @@ -134,7 +135,7 @@ void EXTI9_5_IRQHandler(void) { void EXTI15_10_IRQHandler(void) { uint32_t pending = EXTI->PR; - for (uint8_t i = 10; i <= 15; i++) { + for (uint i = 10; i <= 15; i++) { if (pending & (1 << i)) { stm_exti_callback[i](i); }