| 12345678910111213141516171819202122232425262728293031 |
- /*
- * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
- *
- * SPDX-License-Identifier: Apache-2.0
- */
- #pragma once
- #include "esp_err.h"
- #include "soc/clk_tree_defs.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- /**
- * @brief Set the clock source for IO MUX
- *
- * @note IO MUX clock is shared by submodules like SDM, Glitch Filter.
- * The submodule drivers should call this function to detect if the user set the clock differently.
- *
- * @param clk_src The clock source for IO MUX
- * @return
- * - ESP_OK: Success
- * - ESP_ERR_INVALID_STATE: The IO MUX has been set to another clock source
- */
- esp_err_t io_mux_set_clock_source(soc_module_clk_t clk_src);
- #ifdef __cplusplus
- }
- #endif
|