2023-01-09 06:44:49 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2019-2023 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2023-04-04 03:49:45 -04:00
|
|
|
#include "esp_private/mspi_timing_types.h"
|
2023-01-09 06:44:49 -05:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*-------------------------------------------------------------------------------------------------
|
2023-04-04 03:49:45 -04:00
|
|
|
* Generic Config APIs
|
2023-01-09 06:44:49 -05:00
|
|
|
*-------------------------------------------------------------------------------------------------*/
|
|
|
|
/**
|
2023-04-04 03:49:45 -04:00
|
|
|
* @brief Set Flash module clock
|
2023-03-28 05:03:47 -04:00
|
|
|
*
|
2023-04-04 03:49:45 -04:00
|
|
|
* @param flash_freq_mhz Flash clock frequency in MHz
|
|
|
|
* @param speed_mode Speed mode
|
|
|
|
* @param control_both_mspi Control SPI1 as well
|
2023-01-09 06:44:49 -05:00
|
|
|
*/
|
2023-04-04 03:49:45 -04:00
|
|
|
void mspi_timing_config_set_flash_clock(uint32_t flash_freq_mhz, mspi_timing_speed_mode_t speed_mode, bool control_both_mspi);
|
2023-01-09 06:44:49 -05:00
|
|
|
|
|
|
|
/**
|
2023-04-04 03:49:45 -04:00
|
|
|
* @brief Set PSRAM module clock
|
2023-03-28 05:03:47 -04:00
|
|
|
*
|
2023-04-04 03:49:45 -04:00
|
|
|
* @param psram_freq_mhz PSRAM clock frequency in MHz
|
|
|
|
* @param speed_mode Speed mode
|
|
|
|
* @param control_both_mspi Not used, for compatibility
|
2023-01-09 06:44:49 -05:00
|
|
|
*/
|
2023-04-04 03:49:45 -04:00
|
|
|
void mspi_timing_config_set_psram_clock(uint32_t psram_freq_mhz, mspi_timing_speed_mode_t speed_mode, bool control_both_mspi);
|
2023-01-09 06:44:49 -05:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|