lwip operating system abstraction layer implementation based on CMSIS-RTOS
Dependents: LwIPNetworking NetServicesMin EthernetInterface EthernetInterface_RSF ... more
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);