summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/exti.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-26 20:15:40 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-26 20:15:40 +0000
commitc12b2213c16ba8839981c362c4d5f133a84b374b (patch)
tree59e3de4cce2ab28a9d4f73ba70477be98fb3c353 /stmhal/exti.c
parent69b3ba0df38e276b55f8f76e7f5276723e6d3abe (diff)
downloadmicropython-c12b2213c16ba8839981c362c4d5f133a84b374b.tar.gz
micropython-c12b2213c16ba8839981c362c4d5f133a84b374b.zip
Change mp_method_t.name from const char * to qstr.
Addresses issue #377.
Diffstat (limited to 'stmhal/exti.c')
-rw-r--r--stmhal/exti.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stmhal/exti.c b/stmhal/exti.c
index 8aaa99d429..41f8e378a8 100644
--- a/stmhal/exti.c
+++ b/stmhal/exti.c
@@ -229,11 +229,11 @@ static MP_DEFINE_CONST_FUN_OBJ_1(exti_obj_disable_obj, exti_obj_disable);
static MP_DEFINE_CONST_FUN_OBJ_1(exti_obj_swint_obj, exti_obj_swint);
static const mp_method_t exti_methods[] = {
- { "line", &exti_obj_line_obj },
- { "enable", &exti_obj_enable_obj },
- { "disable", &exti_obj_disable_obj },
- { "swint", &exti_obj_swint_obj },
- { NULL, NULL },
+ { MP_QSTR_line, &exti_obj_line_obj },
+ { MP_QSTR_enable, &exti_obj_enable_obj },
+ { MP_QSTR_disable, &exti_obj_disable_obj },
+ { MP_QSTR_swint, &exti_obj_swint_obj },
+ { MP_QSTR_NULL, NULL },
};
static mp_obj_t exti_regs(void) {