kinetis: fix rtos storage type for thread

pull/7364/head
Martin Kojtal 2018-06-28 15:11:00 +01:00
parent e91ab9c1a1
commit 82b490b0cf
1 changed files with 2 additions and 2 deletions

View File

@ -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);
} }