lwip operating system abstraction layer implementation based on CMSIS-RTOS
Dependents: LwIPNetworking NetServicesMin EthernetInterface EthernetInterface_RSF ... more
Revision 17:12e78a2462d0, committed 2015-10-09
- Comitter:
- mbed_official
- Date:
- Fri Oct 09 08:00:21 2015 +0100
- Parent:
- 16:413514db649c
- Child:
- 18:8b8671ab556f
- Commit message:
- Synchronized with git revision 3f2632bebc4c13ac78bcd8da89f91c19ef836e7f
Full URL: https://github.com/mbedmicro/mbed/commit/3f2632bebc4c13ac78bcd8da89f91c19ef836e7f/
Reflect the change size of structure of Mutex to Ethernet module
Changed in this revision
| arch/sys_arch.c | Show annotated file Show diff for this revision Revisions of this file |
| arch/sys_arch.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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);
--- a/arch/sys_arch.h Wed Jun 17 11:15:34 2015 +0100
+++ b/arch/sys_arch.h Fri Oct 09 08:00:21 2015 +0100
@@ -40,8 +40,12 @@
osMutexId id;
osMutexDef_t def;
#ifdef CMSIS_OS_RTX
+#ifdef __MBED_CMSIS_RTOS_CA9
+ int32_t data[4];
+#else
int32_t data[3];
#endif
+#endif
} sys_mutex_t;
// === MAIL BOX ===
mbed official


