stm32/spibdev: Update to work with new spiflash driver.

This commit is contained in:
Damien George
2018-03-02 23:11:47 +11:00
parent 21d5527edf
commit a0dfc38641
3 changed files with 41 additions and 12 deletions

View File

@@ -39,6 +39,8 @@
// Use external SPI flash as the storage medium
#define BDEV_NUM_BLOCKS (MICROPY_HW_SPIFLASH_SIZE_BITS / 8 / FLASH_BLOCK_SIZE)
#define BDEV_INIT spi_bdev_init
#define BDEV_IRQ_HANDLER spi_bdev_irq_handler
#define BDEV_FLUSH spi_bdev_flush
#define BDEV_READBLOCK spi_bdev_readblock
#define BDEV_WRITEBLOCK spi_bdev_writeblock