diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-20 00:16:30 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-20 00:16:30 +0100 |
commit | d689430e790bfbd40a4fc3139b118aee5576baf7 (patch) | |
tree | e25efdfc49cea0b743e457c2798b538e25ff0a4f /stmhal/main.c | |
parent | c7c4a8439735ff7617f78b5b6c0cdfb05ae88656 (diff) | |
download | micropython-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.c | 5 |
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 |