summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modpybspi.c
Commit message (Collapse)AuthorAge
* esp8266: Rename "machine" module implementation to use contemporary naming.Paul Sokolovsky2016-11-06
| | | | | | | Previously they used historical "pyb" affix causing confusion and inconsistency (there's no "pyb" module in modern ports; but people took esp8266 port as an example, and "pyb" naming kept proliferating, while other people complained that source structure is not clear).
* extmod/machine_spi: Use delay_half, not baudrate, for internal timing.Damien George2016-10-04
| | | | | | | The delay_half parameter must be specified by the port to set up the timing of the software SPI. This allows the port to adjust the timing value to better suit its timing characteristics, as well as provide a more accurate printing of the baudrate.
* extmod/machine_spi: Factor out software SPI code from esp8266 to extmod.Damien George2016-10-03
|
* 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/modpybspi: Use generic SPI helper methods to implement SPI.Damien George2016-09-01
|
* esp8266/modmachinespi: Add a factory method for SoftSPI/HSPIRadomir Dopieralski2016-08-19
|
* esp8266/modpybspi: Configure pins when initialising an SPI object.Damien George2016-05-26
|
* esp8266: Convert to use new MP_Exxx errno symbols.Damien George2016-05-10
| | | | | | | These symbols are still defined in terms of the system Exxx symbols, and can be switched to internal numeric definitions at a later stage. Note that extmod/modlwip still uses many system Exxx symbols.
* esp8266: Change software SPI driver to use general pin HAL.Damien George2016-04-22
|
* esp8266: Implement software SPI class.Damien George2016-03-25
Supports speeds up to 500k baud, polarity=0/1, phase=0/1, and using any pins. Only supports MSB output at the moment.