diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-19 23:15:09 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-19 23:15:09 +0000 |
commit | 302646625b257bc76b9318cf68696aac18e42006 (patch) | |
tree | 06f4c2de72595f0c8c46c4f0f579c39cd418adac /stm/main.c | |
parent | 46239413d033a25662700ba39a97b07737b820fc (diff) | |
download | micropython-302646625b257bc76b9318cf68696aac18e42006.tar.gz micropython-302646625b257bc76b9318cf68696aac18e42006.zip |
stm: Add RTC start-up info, and uPy bindings.
Diffstat (limited to 'stm/main.c')
-rw-r--r-- | stm/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stm/main.c b/stm/main.c index b283821bba..ec3fb09ed6 100644 --- a/stm/main.c +++ b/stm/main.c @@ -430,7 +430,8 @@ soft_reset: #endif rt_store_attr(m, MP_QSTR_hid, rt_make_function_n(1, pyb_hid_send_report)); #if MICROPY_HW_ENABLE_RTC - rt_store_attr(m, MP_QSTR_time, rt_make_function_n(0, pyb_rtc_read)); + rt_store_attr(m, MP_QSTR_time, (mp_obj_t)&pyb_rtc_read_obj); + rt_store_attr(m, qstr_from_str("rtc_info"), (mp_obj_t)&pyb_rtc_info_obj); #endif #if MICROPY_HW_ENABLE_RNG rt_store_attr(m, MP_QSTR_rand, rt_make_function_n(0, pyb_rng_get)); |