feat(esp_hw_support): Add esp_crypto_lock layer for esp32c2

This commit is contained in:
harshal.patil
2023-09-20 09:58:10 +05:30
parent 1f40ad4089
commit aa4783519a
3 changed files with 55 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Acquire lock for the ECC cryptography peripheral.
*
*/
void esp_crypto_ecc_lock_acquire(void);
/**
* @brief Release lock for the ECC cryptography peripheral.
*
*/
void esp_crypto_ecc_lock_release(void);
#ifdef __cplusplus
}
#endif