/* * SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... *//** * @brief * This file is for MSPI timinig tuning private APIs *//* ... */#pragmaonce#include<stdint.h>#include<stdbool.h>#ifdef__cplusplusextern"C"{#endif/** * @brief Make MSPI work under 20Mhz, remove the timing tuning required delays. * @param control_spi1 Select whether to control SPI1. For tuning, we need to use SPI1. After tuning (during startup stage), let the flash driver to control SPI1 *//* ... */voidmspi_timing_enter_low_speed_mode(boolcontrol_spi1);/** * @brief Make MSPI work under the frequency as users set, may add certain delays to MSPI RX direction to meet timing requirements. * @param control_spi1 Select whether to control SPI1. For tuning, we need to use SPI1. After tuning (during startup stage), let the flash driver to control SPI1 *//* ... */voidmspi_timing_enter_high_speed_mode(boolcontrol_spi1);/** * @brief Switch MSPI into low speed mode / high speed mode. * @note This API is cache safe, it will freeze both D$ and I$ and restore them after MSPI is switched * @note For some of the MSPI high frequency settings (e.g. 80M DDR mode Flash or PSRAM), timing tuning is required. * Certain delays will be added to the MSPI RX direction. When CPU clock switches from PLL to XTAL, should call * this API first to enter MSPI low speed mode to remove the delays, and vice versa. *//* ... */voidmspi_timing_change_speed_mode_cache_safe(boolswitch_down);/** * @brief Tune MSPI flash timing to make it work under high frequency *//* ... */voidmspi_timing_flash_tuning(void);/** * @brief Tune MSPI psram timing to make it work under high frequency *//* ... */voidmspi_timing_psram_tuning(void);/** * @brief Set MSPI pin default pin drive *//* ... */voidmspi_timing_set_pin_drive_strength(void);#ifdef__cplusplus}{...}#endif
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.