File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
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 MBED_CONF_RTOS_PRESENT
22
23
#include " cmsis_os2.h"
23
- #include " mbed_rtos_storage.h "
24
+ #endif
24
25
#include < string.h>
25
26
#include < limits.h>
26
27
#include " nu_modutil.h"
27
28
#include " nu_bitutil.h"
28
29
#include " crypto-misc.h"
29
- #include " SingletonPtr.h"
30
- #include " Mutex .h"
30
+ #include " platform/ SingletonPtr.h"
31
+ #include " platform/PlatformMutex .h"
31
32
32
33
/* Consideration for choosing proper synchronization mechanism
33
34
*
46
47
*/
47
48
48
49
/* Mutex for crypto AES AC management */
49
- static SingletonPtr<rtos::Mutex > crypto_aes_mutex;
50
+ static SingletonPtr<PlatformMutex > crypto_aes_mutex;
50
51
51
52
/* Mutex for crypto DES AC management */
52
- static SingletonPtr<rtos::Mutex > crypto_des_mutex;
53
+ static SingletonPtr<PlatformMutex > crypto_des_mutex;
53
54
54
55
/* Mutex for crypto ECC AC management */
55
- static SingletonPtr<rtos::Mutex > crypto_ecc_mutex;
56
+ static SingletonPtr<PlatformMutex > crypto_ecc_mutex;
56
57
57
58
/* Atomic flag for crypto SHA AC management */
58
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 MBED_CONF_RTOS_PRESENT
22
23
#include " cmsis_os2.h"
23
- #include " mbed_rtos_storage.h "
24
+ #endif
24
25
#include < string.h>
25
26
#include < limits.h>
26
27
#include " nu_modutil.h"
27
28
#include " nu_bitutil.h"
28
29
#include " crypto-misc.h"
29
- #include " SingletonPtr.h"
30
- #include " Mutex .h"
30
+ #include " platform/ SingletonPtr.h"
31
+ #include " platform/PlatformMutex .h"
31
32
32
33
/* Consideration for choosing proper synchronization mechanism
33
34
*
44
45
* (2) No biting CPU
45
46
* Same reason as above.
46
47
*/
47
-
48
+
48
49
/* Mutex for crypto AES AC management */
49
- static SingletonPtr<rtos::Mutex > crypto_aes_mutex;
50
+ static SingletonPtr<PlatformMutex > crypto_aes_mutex;
50
51
51
52
/* Mutex for crypto DES AC management */
52
- static SingletonPtr<rtos::Mutex > crypto_des_mutex;
53
+ static SingletonPtr<PlatformMutex > crypto_des_mutex;
53
54
54
55
/* Atomic flag for crypto SHA AC management */
55
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