1 /* 2 * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #pragma once 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 /** @brief Enable Quad I/O mode in bootloader (if configured) 13 * 14 * Queries attached SPI flash ID and sends correct SPI flash 15 * commands to enable QIO or QOUT mode, then enables this mode. 16 */ 17 void bootloader_enable_qio_mode(void); 18 19 /** 20 * @brief Read flash ID by sending 0x9F command 21 * @return flash raw ID 22 * mfg_id = (ID >> 16) & 0xFF; 23 flash_id = ID & 0xffff; 24 */ 25 uint32_t bootloader_read_flash_id(void); 26 27 #ifdef __cplusplus 28 } 29 #endif 30