summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-20 00:16:30 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-20 00:16:30 +0100
commitd689430e790bfbd40a4fc3139b118aee5576baf7 (patch)
treee25efdfc49cea0b743e457c2798b538e25ff0a4f /stmhal/main.c
parentc7c4a8439735ff7617f78b5b6c0cdfb05ae88656 (diff)
downloadmicropython-d689430e790bfbd40a4fc3139b118aee5576baf7.tar.gz
micropython-d689430e790bfbd40a4fc3139b118aee5576baf7.zip
stmhal: Add SPI class.
Also some updates to compile with latest changes to core py.
Diffstat (limited to 'stmhal/main.c')
-rw-r--r--stmhal/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index 5d405453b1..1d02439db8 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -18,6 +18,8 @@
#include "pybstdio.h"
#include "readline.h"
#include "pyexec.h"
+#include "i2c.h"
+#include "spi.h"
#include "usart.h"
#include "timer.h"
#include "led.h"
@@ -31,7 +33,6 @@
#include "ff.h"
#include "lcd.h"
#include "rng.h"
-#include "i2c.h"
#include "accel.h"
#include "servo.h"
#include "dac.h"
@@ -466,8 +467,8 @@ soft_reset:
//timer_init();
#endif
- // I2C
i2c_init();
+ spi_init0();
#if MICROPY_HW_HAS_MMA7660
// MMA accel: init and reset