1 /* 2 * SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * System level OPI Flash APIs (private) 9 */ 10 11 #pragma once 12 13 #include <stdint.h> 14 #include <stdbool.h> 15 #include "sdkconfig.h" 16 #include "esp_err.h" 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 /** 23 * @brief Register ROM functions and init flash device registers to make use of octal flash 24 * 25 * @param chip_id Full device ID read via RDID command 26 */ 27 esp_err_t esp_opiflash_init(uint32_t chip_id); 28 29 /** 30 * @brief Set Octal Flash chip specifically required MSPI register settings here 31 */ 32 void esp_opiflash_set_required_regs(void); 33 34 #ifdef __cplusplus 35 } 36 #endif 37