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/modpyb.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/modpyb.c')
-rw-r--r-- | stmhal/modpyb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c index 56a7233cc2..6fb5cdd846 100644 --- a/stmhal/modpyb.c +++ b/stmhal/modpyb.c @@ -18,6 +18,8 @@ #include "usrsw.h" #include "rng.h" #include "rtc.h" +#include "i2c.h" +#include "spi.h" #include "usart.h" #include "adc.h" #include "storage.h" @@ -25,7 +27,6 @@ #include "accel.h" #include "servo.h" #include "dac.h" -#include "i2c.h" #include "usb.h" #include "modpyb.h" #include "ff.h" @@ -290,6 +291,7 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_LED), (mp_obj_t)&pyb_led_type }, { MP_OBJ_NEW_QSTR(MP_QSTR_I2C), (mp_obj_t)&pyb_i2c_type }, + { MP_OBJ_NEW_QSTR(MP_QSTR_SPI), (mp_obj_t)&pyb_spi_type }, { MP_OBJ_NEW_QSTR(MP_QSTR_USART), (mp_obj_t)&pyb_usart_type }, { MP_OBJ_NEW_QSTR(MP_QSTR_ADC), (mp_obj_t)&pyb_adc_type }, |