summaryrefslogtreecommitdiff
path: root/lib/utils/mpirq.h
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2020-08-14 15:21:23 +1000
committerDamien George <damien@micropython.org>2020-09-08 10:46:30 +1000
commit23109988c29447067b15f1943f72c0b486819c6c (patch)
tree9145a10e80d35d0e26f7ca964e414b6132b14f3f /lib/utils/mpirq.h
parent3ff70792770e4591fec22fa6a1b50f492236fcde (diff)
stm32/uart: Allow static IRQ handler registration.
This will allow the HCI UART to use a non-heap mp_irq_obj_t, which avoids needing to make a root pointer for it.
Diffstat (limited to 'lib/utils/mpirq.h')
-rw-r--r--lib/utils/mpirq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/mpirq.h b/lib/utils/mpirq.h
index 186c9e1b0..dd423c010 100644
--- a/lib/utils/mpirq.h
+++ b/lib/utils/mpirq.h
@@ -26,7 +26,7 @@
#ifndef MICROPY_INCLUDED_LIB_UTILS_MPIRQ_H
#define MICROPY_INCLUDED_LIB_UTILS_MPIRQ_H
-#include "py/obj.h"
+#include "py/runtime.h"
/******************************************************************************
DEFINE CONSTANTS