File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 19
19
#include " mbed_assert.h"
20
20
#include " mbed_critical.h"
21
21
#include " mbed_error.h"
22
+ #if defined(MBED_CONF_RTOS_PRESENT) && MBED_CONF_RTOS_PRESENT
22
23
#include " cmsis_os2.h"
24
+ #endif
23
25
#include < string.h>
24
26
#include < limits.h>
25
27
#include " nu_modutil.h"
26
28
#include " nu_bitutil.h"
27
29
#include " crypto-misc.h"
28
- #include " SingletonPtr.h"
29
- #include " Mutex .h"
30
+ #include " platform/ SingletonPtr.h"
31
+ #include " platform/PlatformMutex .h"
30
32
31
33
/* Consideration for choosing proper synchronization mechanism
32
34
*
45
47
*/
46
48
47
49
/* Mutex for crypto AES AC management */
48
- static SingletonPtr<rtos::Mutex > crypto_aes_mutex;
50
+ static SingletonPtr<PlatformMutex > crypto_aes_mutex;
49
51
50
52
/* Mutex for crypto DES AC management */
51
- static SingletonPtr<rtos::Mutex > crypto_des_mutex;
53
+ static SingletonPtr<PlatformMutex > crypto_des_mutex;
52
54
53
55
/* Mutex for crypto ECC AC management */
54
- static SingletonPtr<rtos::Mutex > crypto_ecc_mutex;
56
+ static SingletonPtr<PlatformMutex > crypto_ecc_mutex;
55
57
56
58
/* Atomic flag for crypto SHA AC management */
57
59
static core_util_atomic_flag crypto_sha_atomic_flag = CORE_UTIL_ATOMIC_FLAG_INIT;
Original file line number Diff line number Diff line change 19
19
#include " mbed_assert.h"
20
20
#include " mbed_critical.h"
21
21
#include " mbed_error.h"
22
+ #if defined(MBED_CONF_RTOS_PRESENT) && MBED_CONF_RTOS_PRESENT
22
23
#include " cmsis_os2.h"
24
+ #endif
23
25
#include < string.h>
24
26
#include < limits.h>
25
27
#include " nu_modutil.h"
26
28
#include " nu_bitutil.h"
27
29
#include " crypto-misc.h"
28
- #include " SingletonPtr.h"
29
- #include " Mutex .h"
30
+ #include " platform/ SingletonPtr.h"
31
+ #include " platform/PlatformMutex .h"
30
32
31
33
/* Consideration for choosing proper synchronization mechanism
32
34
*
43
45
* (2) No biting CPU
44
46
* Same reason as above.
45
47
*/
46
-
48
+
47
49
/* Mutex for crypto AES AC management */
48
- static SingletonPtr<rtos::Mutex > crypto_aes_mutex;
50
+ static SingletonPtr<PlatformMutex > crypto_aes_mutex;
49
51
50
52
/* Mutex for crypto DES AC management */
51
- static SingletonPtr<rtos::Mutex > crypto_des_mutex;
53
+ static SingletonPtr<PlatformMutex > crypto_des_mutex;
52
54
53
55
/* Atomic flag for crypto SHA AC management */
54
56
static core_util_atomic_flag crypto_sha_atomic_flag = CORE_UTIL_ATOMIC_FLAG_INIT;
You can’t perform that action at this time.
0 commit comments