File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
libraries/net/lwip/lwip-sys/arch Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,11 @@ void sys_sem_free(sys_sem_t *sem) {}
285
285
* @return a new mutex */
286
286
err_t sys_mutex_new (sys_mutex_t * mutex ) {
287
287
#ifdef CMSIS_OS_RTX
288
+ #ifdef __MBED_CMSIS_RTOS_CA9
289
+ memset (mutex -> data , 0 , sizeof (int32_t )* 4 );
290
+ #else
288
291
memset (mutex -> data , 0 , sizeof (int32_t )* 3 );
292
+ #endif
289
293
mutex -> def .mutex = mutex -> data ;
290
294
#endif
291
295
mutex -> id = osMutexCreate (& mutex -> def );
Original file line number Diff line number Diff line change @@ -40,8 +40,12 @@ typedef struct {
40
40
osMutexId id ;
41
41
osMutexDef_t def ;
42
42
#ifdef CMSIS_OS_RTX
43
+ #ifdef __MBED_CMSIS_RTOS_CA9
44
+ int32_t data [4 ];
45
+ #else
43
46
int32_t data [3 ];
44
47
#endif
48
+ #endif
45
49
} sys_mutex_t ;
46
50
47
51
// === MAIL BOX ===
You can’t perform that action at this time.
0 commit comments