mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 10:40:47 +03:00
20 lines
420 B
C
20 lines
420 B
C
/*
|
|
* SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include "hal/sec_ll.h"
|
|
#include "soc/clk_tree_defs.h"
|
|
|
|
void esp_crypto_common_clk_enable(bool enable);
|
|
|
|
static inline void esp_crypto_clk_init(void)
|
|
{
|
|
// Set crypto clock (`clk_sec`) to use 480M SPLL clock
|
|
sec_ll_crypto_clk_src_sel(SOC_MOD_CLK_SPLL);
|
|
}
|