Skip to content

Commit 82b490b

Browse files
committed
kinetis: fix rtos storage type for thread
1 parent e91ab9c commit 82b490b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/netsocket/emac-drivers/TARGET_Freescale_EMAC/kinetis_emac.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ Kinetis_EMAC::Kinetis_EMAC() : xTXDCountSem(ENET_TX_RING_LEN, ENET_TX_RING_LEN),
8080
{
8181
}
8282

83-
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)
83+
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)
8484
{
8585
osThreadAttr_t attr = {0};
8686
attr.name = threadName;
8787
attr.stack_mem = malloc(stacksize);
8888
attr.cb_mem = thread_cb;
8989
attr.stack_size = stacksize;
90-
attr.cb_size = sizeof(os_thread_t);
90+
attr.cb_size = sizeof(mbed_rtos_storage_thread_t);
9191
attr.priority = priority;
9292
return osThreadNew(thread, arg, &attr);
9393
}

0 commit comments

Comments
 (0)