micropython/drivers
Damien George 86fe73beb9 drivers/memory/spiflash: Move cache buffer to user-provided config.
This patch removes the global cache variables from the SPI flash driver and
now requires the user to provide the cache memory themselves, via the SPI
flash configuration struct.  This allows to either have a shared cache for
multiple SPI flash devices (by sharing a mp_spiflash_cache_t struct), or
have a single cache per device (or a mix of these options).

To configure the cache use:

    mp_spiflash_cache_t spi_bdev_cache;

    const mp_spiflash_config_t spiflash_config =
        // any bus options
        .cache = &spi_bdev_cache,
    };
2018-06-14 16:52:56 +10:00
..
bus drivers/bus: Pull out software SPI implementation to dedicated driver. 2018-03-10 00:59:43 +11:00
cc3000 drivers/cc3200: Update to work with new stm32 SPI API. 2018-02-05 14:32:56 +11:00
cc3100 drivers: Update CC3100 driver library to SDK release version 1.1.0. 2015-03-16 00:42:08 +01:00
dht stm32: Add support for DHT11/DHT22 sensors. 2018-01-31 18:12:53 +11:00
display drivers/display/ssd1306: Fix super() call in SSD1306 driver. 2018-01-10 17:56:10 +11:00
memory drivers/memory/spiflash: Move cache buffer to user-provided config. 2018-06-14 16:52:56 +10:00
nrf24l01 drivers/nrf24l01: Make driver and test run on pyboard, ESP8266, ESP32. 2017-11-20 11:37:47 +11:00
onewire drivers/onewire: Enable pull-up when init'ing the 1-wire pin. 2017-06-26 17:48:05 +10:00
sdcard drivers/sdcard: Update SD mounting example code for ESP8266. 2018-02-18 23:40:54 +11:00
wiznet5k drivers/wiznet5k: Fix bug with MACRAW socket calculating packet size. 2018-06-01 13:44:09 +10:00
README.md Added 'drivers' directory, intended to hold code for specific hardware. 2014-09-01 22:52:37 +01:00

This directory contains drivers for specific hardware. The drivers are intended to work across multiple ports.