File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
ports/stm32/boards/STM32F769DISC Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ const mp_spiflash_config_t spiflash_config = {
9
9
.bus_kind = MP_SPIFLASH_BUS_QSPI ,
10
10
.bus .u_qspi .data = NULL ,
11
11
.bus .u_qspi .proto = & qspi_proto ,
12
- .cache = NULL ,
13
12
.cache = & spi_bdev_cache ,
14
13
};
15
14
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ extern struct _spi_bdev_t spi_bdev;
41
41
#if !USE_QSPI_XIP
42
42
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
43
43
#define MICROPY_HW_BDEV_IOCTL (op , arg ) ( \
44
- (op) == BDEV_IOCTL_NUM_BLOCKS ? (64 * 1024 * 1024 / FLASH_BLOCK_SIZE) : \
44
+ (op) == BDEV_IOCTL_NUM_BLOCKS ? ((1 << MICROPY_HW_QSPIFLASH_SIZE_BITS_LOG2) / 8 / FLASH_BLOCK_SIZE) : \
45
45
(op) == BDEV_IOCTL_INIT ? spi_bdev_ioctl(&spi_bdev, (op), (uint32_t)&spiflash_config) : \
46
46
spi_bdev_ioctl(&spi_bdev, (op), (arg)) \
47
47
)
You can’t perform that action at this time.
0 commit comments