Skip to content

Commit 047bbc3

Browse files
authored
M467: Replace PlatformMutex with rtos::Mutex (#322)
PlatformMutex becomes unsupported. rtos::Mutex now replaces it, supporting both mbed-baremetal and mbed-os.
1 parent 8d2ede6 commit 047bbc3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

targets/TARGET_NUVOTON/TARGET_M460/crypto/crypto-misc.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "nu_timer.h"
2828
#include "crypto-misc.h"
2929
#include "platform/SingletonPtr.h"
30-
#include "platform/PlatformMutex.h"
30+
#include "rtos/Mutex.h"
3131
#include "hal/trng_api.h"
3232

3333
#if defined(MBEDTLS_CONFIG_HW_SUPPORT)
@@ -43,19 +43,19 @@
4343
*/
4444

4545
/* Mutex for crypto PRNG ACC management */
46-
static SingletonPtr<PlatformMutex> crypto_prng_mutex;
46+
static SingletonPtr<rtos::Mutex> crypto_prng_mutex;
4747

4848
/* Mutex for crypto AES ACC management */
49-
static SingletonPtr<PlatformMutex> crypto_aes_mutex;
49+
static SingletonPtr<rtos::Mutex> crypto_aes_mutex;
5050

5151
/* Mutex for crypto SHA ACC management */
52-
static SingletonPtr<PlatformMutex> crypto_sha_mutex;
52+
static SingletonPtr<rtos::Mutex> crypto_sha_mutex;
5353

5454
/* Mutex for crypto ECC ACC management */
55-
static SingletonPtr<PlatformMutex> crypto_ecc_mutex;
55+
static SingletonPtr<rtos::Mutex> crypto_ecc_mutex;
5656

5757
/* Mutex for crypto RSA ACC management */
58-
static SingletonPtr<PlatformMutex> crypto_rsa_mutex;
58+
static SingletonPtr<rtos::Mutex> crypto_rsa_mutex;
5959

6060
/* Crypto init counter. Crypto keeps active as it is non-zero. */
6161
static uint16_t crypto_init_counter = 0U;

0 commit comments

Comments
 (0)