Skip to content

Commit 81d227d

Browse files
committed
Use types from circuitpython.
1 parent ab1de66 commit 81d227d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ports/stm/peripherals/exti.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include <stdbool.h>
2828
#include "py/mpconfig.h"
29+
#include "py/misc.h"
2930

3031
#include "peripherals/exti.h"
3132

@@ -125,7 +126,7 @@ void EXTI4_IRQHandler(void) {
125126
#endif
126127
void EXTI9_5_IRQHandler(void) {
127128
uint32_t pending = EXTI->PR;
128-
for (uint8_t i = 5; i <= 9; i++) {
129+
for (uint i = 5; i <= 9; i++) {
129130
if (pending & (1 << i)) {
130131
stm_exti_callback[i](i);
131132
}
@@ -134,7 +135,7 @@ void EXTI9_5_IRQHandler(void) {
134135

135136
void EXTI15_10_IRQHandler(void) {
136137
uint32_t pending = EXTI->PR;
137-
for (uint8_t i = 10; i <= 15; i++) {
138+
for (uint i = 10; i <= 15; i++) {
138139
if (pending & (1 << i)) {
139140
stm_exti_callback[i](i);
140141
}

0 commit comments

Comments
 (0)