mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			kinetis: fix rtos storage type for thread
							parent
							
								
									e91ab9c1a1
								
							
						
					
					
						commit
						82b490b0cf
					
				| 
						 | 
					@ -80,14 +80,14 @@ Kinetis_EMAC::Kinetis_EMAC() : xTXDCountSem(ENET_TX_RING_LEN, ENET_TX_RING_LEN),
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static osThreadId_t create_new_thread(const char *threadName, void (*thread)(void *arg), void *arg, int stacksize, osPriority_t priority, os_thread_t *thread_cb)
 | 
					static osThreadId_t create_new_thread(const char *threadName, void (*thread)(void *arg), void *arg, int stacksize, osPriority_t priority, mbed_rtos_storage_thread_t *thread_cb)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    osThreadAttr_t attr = {0};
 | 
					    osThreadAttr_t attr = {0};
 | 
				
			||||||
    attr.name = threadName;
 | 
					    attr.name = threadName;
 | 
				
			||||||
    attr.stack_mem  = malloc(stacksize);
 | 
					    attr.stack_mem  = malloc(stacksize);
 | 
				
			||||||
    attr.cb_mem  = thread_cb;
 | 
					    attr.cb_mem  = thread_cb;
 | 
				
			||||||
    attr.stack_size = stacksize;
 | 
					    attr.stack_size = stacksize;
 | 
				
			||||||
    attr.cb_size = sizeof(os_thread_t);
 | 
					    attr.cb_size = sizeof(mbed_rtos_storage_thread_t);
 | 
				
			||||||
    attr.priority = priority;
 | 
					    attr.priority = priority;
 | 
				
			||||||
    return osThreadNew(thread, arg, &attr);
 | 
					    return osThreadNew(thread, arg, &attr);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue