summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modpybhspi.c
Commit message (Collapse)AuthorAge
* extmod/machine_spi: Simplify SPI xfer function to only take one buf len.Damien George2016-10-03
| | | | | | | | There is no need to take src_len and dest_len arguments. The case of reading-only with a single output byte (originally src_len=1, dest_len>1) is now handled by using the output buffer as the input buffer, and using memset to fill the output byte into this buffer. This simplifies the implementations of the spi_transfer protocol function.
* esp8266/modmachine: Simplify SPI class implementation multiplexing.Paul Sokolovsky2016-09-04
| | | | | | | | | | | | modpybhspi now does the needed multiplexing, calling out to modpybspi (bitbanging SPI) for suitable peripheral ID's. modmachinespi (previous multiplexer class) thus not needed and removed. modpybhspi also updated to following standard SPI peripheral naming: SPI0 is used for FlashROM and thus not supported so far. SPI1 is available for users, and thus needs to be instantiated as: spi = machine.SPI(1, ...)
* esp8266/modpybhspi: Simplify HSPI driver by using 1 function for xfers.Damien George2016-09-01
|
* esp8266/modmachinespi: Add a factory method for SoftSPI/HSPIRadomir Dopieralski2016-08-19
|
* esp8266/modpybhspi: Add a HSPI module for hardware SPI supportRadomir Dopieralski2016-08-19
This module uses ESP8266's SPI hardware, which allows much higher speeds. It uses a library from https://github.com/MetalPhreak/ESP8266_SPI_Driver