Skip to content

Commit 9d06547

Browse files
committed
lwip - fix size of sys mutex for RTX 4.79
The size was increased to 4 bytes. Thanks @c1728p9 for spotting this.
1 parent ab3c1e3 commit 9d06547

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/net/lwip/lwip-sys/arch/sys_arch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void sys_sem_free(sys_sem_t *sem) {}
285285
* @return a new mutex */
286286
err_t sys_mutex_new(sys_mutex_t *mutex) {
287287
#ifdef CMSIS_OS_RTX
288-
#ifdef __MBED_CMSIS_RTOS_CA9
288+
#if defined(__MBED_CMSIS_RTOS_CA9) || defined(__MBED_CMSIS_RTOS_CM)
289289
memset(mutex->data, 0, sizeof(int32_t)*4);
290290
#else
291291
memset(mutex->data, 0, sizeof(int32_t)*3);

libraries/net/lwip/lwip-sys/arch/sys_arch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typedef struct {
4040
osMutexId id;
4141
osMutexDef_t def;
4242
#ifdef CMSIS_OS_RTX
43-
#ifdef __MBED_CMSIS_RTOS_CA9
43+
#if defined(__MBED_CMSIS_RTOS_CA9) || defined(__MBED_CMSIS_RTOS_CM)
4444
int32_t data[4];
4545
#else
4646
int32_t data[3];

0 commit comments

Comments
 (0)