kopia lustrzana https://github.com/espressif/esp-idf
27 wiersze
440 B
C
27 wiersze
440 B
C
/*
|
|
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <sys/lock.h>
|
|
|
|
#include "esp_crypto_lock.h"
|
|
|
|
/* Lock overview:
|
|
ECC: independent
|
|
*/
|
|
|
|
/* Lock for ECC peripheral */
|
|
static _lock_t s_crypto_ecc_lock;
|
|
|
|
void esp_crypto_ecc_lock_acquire(void)
|
|
{
|
|
_lock_acquire(&s_crypto_ecc_lock);
|
|
}
|
|
|
|
void esp_crypto_ecc_lock_release(void)
|
|
{
|
|
_lock_release(&s_crypto_ecc_lock);
|
|
}
|