diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-19 23:19:18 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-19 23:19:18 +0000 |
commit | 948a58d56e3b0d43789ff5e91d6f844157dec05d (patch) | |
tree | e2b0b7420ac870b184ea4e6b706a6051aaf1115b /stm/main.c | |
parent | 1b182a30d00fc0a35b8ad835e51f019e28ba919a (diff) | |
parent | 51dabac0961165cd38cdd0ba227aaf014190091c (diff) | |
download | micropython-948a58d56e3b0d43789ff5e91d6f844157dec05d.tar.gz micropython-948a58d56e3b0d43789ff5e91d6f844157dec05d.zip |
Merge pull request #310 from dhylands/pin_map
Add pin mapping code.
Diffstat (limited to 'stm/main.c')
-rw-r--r-- | stm/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stm/main.c b/stm/main.c index ec3fb09ed6..4fed5850a6 100644 --- a/stm/main.c +++ b/stm/main.c @@ -50,6 +50,7 @@ #include "adc.h" #include "rtc.h" #include "file.h" +#include "pin.h" int errno; @@ -446,6 +447,7 @@ soft_reset: rt_store_attr(m, MP_QSTR_ADC, (mp_obj_t)&pyb_ADC_obj); rt_store_attr(m, qstr_from_str("millis"), rt_make_function_n(0, pyb_millis)); + pin_map_init(m); gpio_init(m); rt_store_name(MP_QSTR_pyb, m); |