summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHagen Kaye <hagen@xtralean.com>2013-12-28 20:22:12 -0500
committerHagen Kaye <hagen@xtralean.com>2013-12-28 20:22:12 -0500
commit07590c273936dfa7d5fa6bd994ff4a858fd9f258 (patch)
treebad111768884edc5ee71eeea297250267578ee6c
parent6474598c655a055b2155d408284b40b11e9fe27b (diff)
downloadmicropython-07590c273936dfa7d5fa6bd994ff4a858fd9f258.tar.gz
micropython-07590c273936dfa7d5fa6bd994ff4a858fd9f258.zip
changes to Makefile and main.c to add i2c.c
-rw-r--r--stm/Makefile1
-rw-r--r--stm/main.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/stm/Makefile b/stm/Makefile
index 1e0831159e..c61900e3d1 100644
--- a/stm/Makefile
+++ b/stm/Makefile
@@ -33,6 +33,7 @@ SRC_C = \
audio.c \
sdio.c \
pybwlan.c \
+ i2c.c \
SRC_S = \
startup_stm32f40xx.s \
diff --git a/stm/main.c b/stm/main.c
index f45e899854..22ce46f256 100644
--- a/stm/main.c
+++ b/stm/main.c
@@ -37,6 +37,7 @@
#include "timer.h"
#include "audio.h"
#include "pybwlan.h"
+#include "i2c.h"
int errno;
@@ -877,6 +878,7 @@ soft_reset:
rt_store_attr(m, qstr_from_str_static("rand"), rt_make_function_0(pyb_rng_get));
rt_store_attr(m, qstr_from_str_static("Led"), rt_make_function_1(pyb_Led));
rt_store_attr(m, qstr_from_str_static("Servo"), rt_make_function_1(pyb_Servo));
+ rt_store_attr(m, qstr_from_str_static("I2C"), rt_make_function_2(pyb_I2C));
rt_store_name(qstr_from_str_static("pyb"), m);
rt_store_name(qstr_from_str_static("open"), rt_make_function_2(pyb_io_open));