summaryrefslogtreecommitdiffstatshomepage
path: root/stm/timer.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-13 19:50:05 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-13 19:50:05 +0000
commitf62d33aa1dc5afad9abbaf257531bdc4b0fbfdc0 (patch)
treec512ba2f387febe7fa57c2e1bf52b6250d579e73 /stm/timer.c
parentf88a72a88e78ce1cfbd25f0cbf1fbff5e6fd43cb (diff)
downloadmicropython-f62d33aa1dc5afad9abbaf257531bdc4b0fbfdc0.tar.gz
micropython-f62d33aa1dc5afad9abbaf257531bdc4b0fbfdc0.zip
Consolidate rt_make_function_[0123] to rt_make_function_n.
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 2605d4b4bc..c665a461d0 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);
}