aboutsummaryrefslogtreecommitdiff
path: root/stm/timer.c
diff options
context:
space:
mode:
authorJohn R. Lenton2014-01-13 23:14:35 +0000
committerJohn R. Lenton2014-01-13 23:14:35 +0000
commit93451002f04e0b89e41e1faa82f86e937bb219f1 (patch)
tree478f8fedae2b08f12181c98a4a3d1c4cdf19403d /stm/timer.c
parent88cb1e60e0b780d71e9c2d7b0acafa71ba3ea318 (diff)
parentca318bba0d97c66d8fb14a089d8fa269a0e1b424 (diff)
Merge remote-tracking branch 'upstream/master' into builtins
Conflicts: py/builtin.c py/builtin.h py/runtime.c
Diffstat (limited to 'stm/timer.c')
-rw-r--r--stm/timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stm/timer.c b/stm/timer.c
index 2605d4b4b..c665a461d 100644
--- a/stm/timer.c
+++ b/stm/timer.c
@@ -72,10 +72,10 @@ void timer_init(void) {
// Python interface
mp_obj_t m = mp_obj_new_module(qstr_from_str_static("timer"));
- rt_store_attr(m, qstr_from_str_static("callback"), rt_make_function_1(timer_py_set_callback));
- rt_store_attr(m, qstr_from_str_static("period"), rt_make_function_1(timer_py_set_period));
- rt_store_attr(m, qstr_from_str_static("prescaler"), rt_make_function_1(timer_py_set_prescaler));
- rt_store_attr(m, qstr_from_str_static("value"), rt_make_function_0(timer_py_get_value));
+ rt_store_attr(m, qstr_from_str_static("callback"), rt_make_function_n(1, timer_py_set_callback));
+ rt_store_attr(m, qstr_from_str_static("period"), rt_make_function_n(1, timer_py_set_period));
+ rt_store_attr(m, qstr_from_str_static("prescaler"), rt_make_function_n(1, timer_py_set_prescaler));
+ rt_store_attr(m, qstr_from_str_static("value"), rt_make_function_n(0, timer_py_get_value));
rt_store_name(qstr_from_str_static("timer"), m);
}