Use types from circuitpython.

This commit is contained in:
flom84 2022-10-10 20:55:44 +02:00
parent ab1de66dd3
commit 81d227de73

View File

@ -26,6 +26,7 @@
#include <stdbool.h>
#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);
}