diff options
author | Radomir Dopieralski <openstack@sheep.art.pl> | 2016-06-07 21:40:56 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-08-19 21:19:59 +0300 |
commit | 8e7dfea803f618beaa2ad976dff0b196e449d5d9 (patch) | |
tree | 93eb8f7dfed421dec4cfc4c187ab0d5fea55522a /esp8266/modmachine.c | |
parent | 49dd532180282f24ad31daf7f4f661722d4f9b16 (diff) | |
download | micropython-8e7dfea803f618beaa2ad976dff0b196e449d5d9.tar.gz micropython-8e7dfea803f618beaa2ad976dff0b196e449d5d9.zip |
esp8266/modpybhspi: Add a HSPI module for hardware SPI support
This module uses ESP8266's SPI hardware, which allows much higher
speeds. It uses a library from
https://github.com/MetalPhreak/ESP8266_SPI_Driver
Diffstat (limited to 'esp8266/modmachine.c')
-rw-r--r-- | esp8266/modmachine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/esp8266/modmachine.c b/esp8266/modmachine.c index b3a42618e5..624ce2ac56 100644 --- a/esp8266/modmachine.c +++ b/esp8266/modmachine.c @@ -252,6 +252,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&pyb_uart_type) }, { MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&machine_i2c_type) }, { MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&pyb_spi_type) }, + { MP_ROM_QSTR(MP_QSTR_HSPI), MP_ROM_PTR(&pyb_hspi_type) }, // wake abilities { MP_ROM_QSTR(MP_QSTR_DEEPSLEEP), MP_ROM_INT(MACHINE_WAKE_DEEPSLEEP) }, |