stm32/boards: Enable LFS2 on PYBv1.x and PYBD boards.

This commit is contained in:
Damien George 2019-11-14 16:36:05 +11:00
parent 5634a31a98
commit 120368ba1a
4 changed files with 8 additions and 0 deletions

View File

@ -84,6 +84,7 @@ extern struct _spi_bdev_t spi_bdev;
) )
#define MICROPY_HW_BDEV_READBLOCKS(dest, bl, n) spi_bdev_readblocks(&spi_bdev, (dest), (bl), (n)) #define MICROPY_HW_BDEV_READBLOCKS(dest, bl, n) spi_bdev_readblocks(&spi_bdev, (dest), (bl), (n))
#define MICROPY_HW_BDEV_WRITEBLOCKS(src, bl, n) spi_bdev_writeblocks(&spi_bdev, (src), (bl), (n)) #define MICROPY_HW_BDEV_WRITEBLOCKS(src, bl, n) spi_bdev_writeblocks(&spi_bdev, (src), (bl), (n))
#define MICROPY_HW_BDEV_SPIFLASH_EXTENDED (&spi_bdev) // for extended block protocol
// SPI flash #2, to be memory mapped // SPI flash #2, to be memory mapped
#define MICROPY_HW_QSPIFLASH_SIZE_BITS_LOG2 (24) #define MICROPY_HW_QSPIFLASH_SIZE_BITS_LOG2 (24)

View File

@ -16,3 +16,4 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_NETWORK_CYW43 = 1 MICROPY_PY_NETWORK_CYW43 = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
MICROPY_VFS_LFS2 = 1

View File

@ -11,3 +11,6 @@ LD_FILES = boards/stm32f405.ld boards/common_ifs.ld
TEXT0_ADDR = 0x08000000 TEXT0_ADDR = 0x08000000
TEXT1_ADDR = 0x08020000 TEXT1_ADDR = 0x08020000
endif endif
# MicroPython settings
MICROPY_VFS_LFS2 = 1

View File

@ -11,3 +11,6 @@ LD_FILES = boards/stm32f405.ld boards/common_ifs.ld
TEXT0_ADDR = 0x08000000 TEXT0_ADDR = 0x08000000
TEXT1_ADDR = 0x08020000 TEXT1_ADDR = 0x08020000
endif endif
# MicroPython settings
MICROPY_VFS_LFS2 = 1