summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/exti.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/exti.c')
-rw-r--r--stmhal/exti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/exti.c b/stmhal/exti.c
index e5e9b53bda..99bcd07e89 100644
--- a/stmhal/exti.c
+++ b/stmhal/exti.c
@@ -264,7 +264,7 @@ STATIC MP_DEFINE_CONST_DICT(exti_locals_dict, exti_locals_dict_table);
STATIC mp_obj_t exti_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) {
// type_in == exti_obj_type
- rt_check_nargs(n_args, 4, 4, n_kw, false);
+ mp_check_nargs(n_args, 4, 4, n_kw, false);
exti_obj_t *self = m_new_obj(exti_obj_t);
self->base.type = type_in;
@@ -305,7 +305,7 @@ void Handle_EXTI_Irq(uint32_t line) {
exti_vector_t *v = &exti_vector[line];
if (v->callback_obj != mp_const_none) {
// TODO need to wrap this in an nlr_buf; really need a general function for this
- rt_call_function_1(v->callback_obj, MP_OBJ_NEW_SMALL_INT(line));
+ mp_call_function_1(v->callback_obj, MP_OBJ_NEW_SMALL_INT(line));
}
}
}