fix warning/Werror in NO_FLASH build

This commit is contained in:
graham sanderson 2021-01-28 08:34:01 -06:00 committed by Graham Sanderson
parent 0e44a8013c
commit 9ab5e8d543

View File

@ -112,6 +112,7 @@ void __no_inline_not_in_flash_func(flash_range_program)(uint32_t flash_offs, con
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Lower-level flash access functions // Lower-level flash access functions
#if !PICO_NO_FLASH
// Bitbanging the chip select using IO overrides, in case RAM-resident IRQs // Bitbanging the chip select using IO overrides, in case RAM-resident IRQs
// are still running, and the FIFO bottoms out. (the bootrom does the same) // are still running, and the FIFO bottoms out. (the bootrom does the same)
static void flash_cs_force(bool high) { static void flash_cs_force(bool high) {
@ -159,6 +160,7 @@ static void __no_inline_not_in_flash_func(flash_do_cmd)(const uint8_t *txbuf, ui
flash_flush_cache(); flash_flush_cache();
flash_enable_xip_via_boot2(); flash_enable_xip_via_boot2();
} }
#endif
// Use standard RUID command to get a unique identifier for the flash (and // Use standard RUID command to get a unique identifier for the flash (and
// hence the board) // hence the board)