mirror of https://github.com/ARMmbed/mbed-os.git
lwip - fix size of sys mutex for RTX 4.79
The size was increased to 4 bytes. Thanks @c1728p9 for spotting this.pull/2231/head
parent
697ac558be
commit
498add7f9f
|
@ -285,7 +285,7 @@ void sys_sem_free(sys_sem_t *sem) {}
|
||||||
* @return a new mutex */
|
* @return a new mutex */
|
||||||
err_t sys_mutex_new(sys_mutex_t *mutex) {
|
err_t sys_mutex_new(sys_mutex_t *mutex) {
|
||||||
#ifdef CMSIS_OS_RTX
|
#ifdef CMSIS_OS_RTX
|
||||||
#ifdef __MBED_CMSIS_RTOS_CA9
|
#if defined(__MBED_CMSIS_RTOS_CA9) || defined(__MBED_CMSIS_RTOS_CM)
|
||||||
memset(mutex->data, 0, sizeof(int32_t)*4);
|
memset(mutex->data, 0, sizeof(int32_t)*4);
|
||||||
#else
|
#else
|
||||||
memset(mutex->data, 0, sizeof(int32_t)*3);
|
memset(mutex->data, 0, sizeof(int32_t)*3);
|
||||||
|
|
|
@ -40,7 +40,7 @@ typedef struct {
|
||||||
osMutexId id;
|
osMutexId id;
|
||||||
osMutexDef_t def;
|
osMutexDef_t def;
|
||||||
#ifdef CMSIS_OS_RTX
|
#ifdef CMSIS_OS_RTX
|
||||||
#ifdef __MBED_CMSIS_RTOS_CA9
|
#if defined(__MBED_CMSIS_RTOS_CA9) || defined(__MBED_CMSIS_RTOS_CM)
|
||||||
int32_t data[4];
|
int32_t data[4];
|
||||||
#else
|
#else
|
||||||
int32_t data[3];
|
int32_t data[3];
|
||||||
|
|
Loading…
Reference in New Issue