lwip - fix size of sys mutex for RTX 4.79

The size was increased to 4 bytes. Thanks @c1728p9 for spotting this.
pull/1702/head
0xc0170 2016-05-02 10:25:08 -05:00
parent ab3c1e3a16
commit 9d06547135
2 changed files with 2 additions and 2 deletions

View File

@ -285,7 +285,7 @@ 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
#if defined(__MBED_CMSIS_RTOS_CA9) || defined(__MBED_CMSIS_RTOS_CM)
memset(mutex->data, 0, sizeof(int32_t)*4);
#else
memset(mutex->data, 0, sizeof(int32_t)*3);

View File

@ -40,7 +40,7 @@ typedef struct {
osMutexId id;
osMutexDef_t def;
#ifdef CMSIS_OS_RTX
#ifdef __MBED_CMSIS_RTOS_CA9
#if defined(__MBED_CMSIS_RTOS_CA9) || defined(__MBED_CMSIS_RTOS_CM)
int32_t data[4];
#else
int32_t data[3];