From 047bbc3bd3d91864ebb373c1c4908bdbebaa089c Mon Sep 17 00:00:00 2001 From: ccli8 Date: Fri, 16 Aug 2024 12:23:32 +0800 Subject: [PATCH] M467: Replace PlatformMutex with rtos::Mutex (#322) PlatformMutex becomes unsupported. rtos::Mutex now replaces it, supporting both mbed-baremetal and mbed-os. --- .../TARGET_M460/crypto/crypto-misc.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/targets/TARGET_NUVOTON/TARGET_M460/crypto/crypto-misc.cpp b/targets/TARGET_NUVOTON/TARGET_M460/crypto/crypto-misc.cpp index 8d044bb904..cf06ad0ce4 100644 --- a/targets/TARGET_NUVOTON/TARGET_M460/crypto/crypto-misc.cpp +++ b/targets/TARGET_NUVOTON/TARGET_M460/crypto/crypto-misc.cpp @@ -27,7 +27,7 @@ #include "nu_timer.h" #include "crypto-misc.h" #include "platform/SingletonPtr.h" -#include "platform/PlatformMutex.h" +#include "rtos/Mutex.h" #include "hal/trng_api.h" #if defined(MBEDTLS_CONFIG_HW_SUPPORT) @@ -43,19 +43,19 @@ */ /* Mutex for crypto PRNG ACC management */ -static SingletonPtr crypto_prng_mutex; +static SingletonPtr crypto_prng_mutex; /* Mutex for crypto AES ACC management */ -static SingletonPtr crypto_aes_mutex; +static SingletonPtr crypto_aes_mutex; /* Mutex for crypto SHA ACC management */ -static SingletonPtr crypto_sha_mutex; +static SingletonPtr crypto_sha_mutex; /* Mutex for crypto ECC ACC management */ -static SingletonPtr crypto_ecc_mutex; +static SingletonPtr crypto_ecc_mutex; /* Mutex for crypto RSA ACC management */ -static SingletonPtr crypto_rsa_mutex; +static SingletonPtr crypto_rsa_mutex; /* Crypto init counter. Crypto keeps active as it is non-zero. */ static uint16_t crypto_init_counter = 0U;