lwip operating system abstraction layer implementation based on CMSIS-RTOS
Dependents: LwIPNetworking NetServicesMin EthernetInterface EthernetInterface_RSF ... more
Diff: arch/sys_arch.c
- Revision:
- 14:ba056f7b4b37
- Parent:
- 13:bca6d04bc6d3
- Child:
- 15:7d4b24b58e04
--- a/arch/sys_arch.c Fri Aug 15 16:30:36 2014 +0100 +++ b/arch/sys_arch.c Thu Nov 06 11:00:51 2014 +0000 @@ -426,11 +426,13 @@ t->def.pthread = (os_pthread)thread; t->def.tpriority = (osPriority)priority; t->def.stacksize = stacksize; +#ifndef __MBED_CMSIS_RTOS_CA9 t->def.stack_pointer = (unsigned char*)malloc(stacksize); if (t->def.stack_pointer == NULL) { error("Error allocating the stack memory"); } #endif +#endif t->id = osThreadCreate(&t->def, arg); if (t->id == NULL) error("sys_thread_new create error\n");