mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #1375 from TomoYamanaka/master
Reflect the change size of structure of Mutex to Ethernet modulepull/1379/head
commit
3f2632bebc
|
@ -285,7 +285,11 @@ void sys_sem_free(sys_sem_t *sem) {}
|
|||
* @return a new mutex */
|
||||
err_t sys_mutex_new(sys_mutex_t *mutex) {
|
||||
#ifdef CMSIS_OS_RTX
|
||||
#ifdef __MBED_CMSIS_RTOS_CA9
|
||||
memset(mutex->data, 0, sizeof(int32_t)*4);
|
||||
#else
|
||||
memset(mutex->data, 0, sizeof(int32_t)*3);
|
||||
#endif
|
||||
mutex->def.mutex = mutex->data;
|
||||
#endif
|
||||
mutex->id = osMutexCreate(&mutex->def);
|
||||
|
|
|
@ -40,8 +40,12 @@ typedef struct {
|
|||
osMutexId id;
|
||||
osMutexDef_t def;
|
||||
#ifdef CMSIS_OS_RTX
|
||||
#ifdef __MBED_CMSIS_RTOS_CA9
|
||||
int32_t data[4];
|
||||
#else
|
||||
int32_t data[3];
|
||||
#endif
|
||||
#endif
|
||||
} sys_mutex_t;
|
||||
|
||||
// === MAIL BOX ===
|
||||
|
|
Loading…
Reference in New Issue