diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-14 15:41:05 -0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-14 15:41:05 -0800 |
commit | a04a33fee781d59d8d523474084cbb3facba1a49 (patch) | |
tree | 584f334c526a9420c25bd29226ecbbd7eee1763a /stm/main.c | |
parent | 11cc694aa0fced8ea96bf36d37f4409296740e1e (diff) | |
parent | 8c10240722951e19b13f35e5bec289060b531cd9 (diff) | |
download | micropython-a04a33fee781d59d8d523474084cbb3facba1a49.tar.gz micropython-a04a33fee781d59d8d523474084cbb3facba1a49.zip |
Merge pull request #175 from iabdalkader/master
Add missing ADC driver
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 4d49b8d3d2..c5e9d76d4d 100644 --- a/stm/main.c +++ b/stm/main.c @@ -40,6 +40,7 @@ #include "pybwlan.h" #include "i2c.h" #include "usrsw.h" +#include "adc.h" int errno; @@ -839,6 +840,7 @@ soft_reset: rt_store_attr(m, qstr_from_str_static("I2C"), rt_make_function_n(2, pyb_I2C)); rt_store_attr(m, qstr_from_str_static("gpio"), (mp_obj_t)&pyb_gpio_obj); rt_store_attr(m, qstr_from_str_static("Usart"), rt_make_function_n(2, pyb_Usart)); + rt_store_attr(m, qstr_from_str_static("ADC"), rt_make_function_n(1, pyb_ADC)); rt_store_name(qstr_from_str_static("pyb"), m); rt_store_name(qstr_from_str_static("open"), rt_make_function_n(2, pyb_io_open)); |