File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ void VCC_GND_F407VE_board_early_init(void);
132
132
133
133
extern const struct _mp_spiflash_config_t spiflash_config ;
134
134
extern struct _spi_bdev_t spi_bdev ;
135
+ #define MICROPY_HW_SPIFLASH_ENABLE_CACHE (1)
135
136
#define MICROPY_HW_BDEV_IOCTL (op , arg ) ( \
136
137
(op) == BDEV_IOCTL_NUM_BLOCKS ? (MICROPY_HW_SPIFLASH_SIZE_BITS / 8 / FLASH_BLOCK_SIZE) : \
137
138
(op) == BDEV_IOCTL_INIT ? spi_bdev_ioctl(&spi_bdev, (op), (uint32_t)&spiflash_config) : \
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ void VCC_GND_F407ZG_board_early_init(void);
140
140
141
141
extern const struct _mp_spiflash_config_t spiflash_config ;
142
142
extern struct _spi_bdev_t spi_bdev ;
143
+ #define MICROPY_HW_SPIFLASH_ENABLE_CACHE (1)
143
144
#define MICROPY_HW_BDEV_IOCTL (op , arg ) ( \
144
145
(op) == BDEV_IOCTL_NUM_BLOCKS ? (MICROPY_HW_SPIFLASH_SIZE_BITS / 8 / FLASH_BLOCK_SIZE) : \
145
146
(op) == BDEV_IOCTL_INIT ? spi_bdev_ioctl(&spi_bdev, (op), (uint32_t)&spiflash_config) : \
You can’t perform that action at this time.
0 commit comments