8000 stm32/boards: Enable LFS2 on PYBv1.x and PYBD boards. · rlangoy/micropython@120368b · GitHub
[go: up one dir, main page]

Skip to content

Commit 120368b

Browse files
committed
stm32/boards: Enable LFS2 on PYBv1.x and PYBD boards.
1 parent 5634a31 commit 120368b

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

ports/stm32/boards/PYBD_SF2/mpconfigboard.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ extern struct _spi_bdev_t spi_bdev;
8484
)
8585
#define MICROPY_HW_BDEV_READBLOCKS(dest, bl, n) spi_bdev_readblocks(&spi_bdev, (dest), (bl), (n))
8686
#define MICROPY_HW_BDEV_WRITEBLOCKS(src, bl, n) spi_bdev_writeblocks(&spi_bdev, (src), (bl), (n))
87+
#define MICROPY_HW_BDEV_SPIFLASH_EXTENDED (&spi_bdev) // for extended block protocol
8788

8889
// SPI flash #2, to be memory mapped
8990
#define MICROPY_HW_QSPIFLASH_SIZE_BITS_LOG2 (24)

ports/stm32/boards/PYBD_SF2/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ MICROPY_PY_LWIP = 1
1616
MICROPY_PY_NETWORK_CYW43 = 1
1717
MICROPY_PY_USSL = 1
1818
MICROPY_SSL_MBEDTLS = 1
19+
MICROPY_VFS_LFS2 = 1

ports/stm32/boards/PYBV10/mpconfigboard.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ LD_FILES = boards/stm32f405.ld boards/common_ifs.ld
1111
TEXT0_ADDR = 0x08000000
1212
TEXT1_ADDR = 0x08020000
1313
endif
14+
15+
# MicroPython settings
16+
MICROPY_VFS_LFS2 = 1

ports/stm32/boards/PYBV11/mpconfigboard.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ LD_FILES = boards/stm32f405.ld boards/common_ifs.ld
1111
TEXT0_ADDR = 0x08000000
1212
TEXT1_ADDR = 0x08020000
1313
endif
14+
15+
# MicroPython settings
16+
MICROPY_VFS_LFS2 = 1

0 commit comments

Comments
 (0)
0