Skip to content

Commit

Permalink
stm32/boards/STM32F769DISC: Fix building with USE_QSPI_XIP=1.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
pi-anl authored and dpgeorge committed Feb 16, 2023
1 parent 177ae2f commit 75e7e7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/stm32/boards/STM32F769DISC/board_init.c
Expand Up @@ -3,13 +3,17 @@

// This configuration is needed for mboot to be able to write to the external QSPI flash

#if MICROPY_HW_SPIFLASH_ENABLE_CACHE
STATIC mp_spiflash_cache_t spi_bdev_cache;
#endif

const mp_spiflash_config_t spiflash_config = {
.bus_kind = MP_SPIFLASH_BUS_QSPI,
.bus.u_qspi.data = NULL,
.bus.u_qspi.proto = &qspi_proto,
#if MICROPY_HW_SPIFLASH_ENABLE_CACHE
.cache = &spi_bdev_cache,
#endif
};

spi_bdev_t spi_bdev;
Expand Down

0 comments on commit 75e7e7d

Please sign in to comment.