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
Martin Kojtal 2016-04-11 10:49:37 +01:00 committed by Christopher Haster
parent 697ac558be
commit 498add7f9f
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];