Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of lwip-sys by
Diff: arch/sys_arch.c
- Revision:
- 17:12e78a2462d0
- Parent:
- 16:413514db649c
- Child:
- 18:8b8671ab556f
--- a/arch/sys_arch.c Wed Jun 17 11:15:34 2015 +0100 +++ b/arch/sys_arch.c Fri Oct 09 08:00:21 2015 +0100 @@ -285,7 +285,11 @@ * @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);