Skip to content

Commit

Permalink
Added osal_task creation via task spwan, added fec driver for Freesca…
Browse files Browse the repository at this point in the history
…le MAC FEC/ENET

Added osal_task creation via task spwan,
Added fec driver for Freescale MAC FEC/ENET
  • Loading branch information
nakarlsson committed Mar 8, 2015
1 parent 498ea63 commit f140496
Show file tree
Hide file tree
Showing 3 changed files with 887 additions and 0 deletions.
29 changes: 29 additions & 0 deletions osal/rtk/osal.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,32 @@ boolean osal_timer_is_expired (osal_timert * self)
return is_not_yet_expired == false;
}

void *osal_malloc(size_t size)
{
return malloc(size);
}

void osal_free(void *ptr)
{
free(ptr);
}

int osal_thread_create(void *thandle, int stacksize, void *func, void *param)
{
thandle = task_spawn ("worker", func, 6,stacksize, param);
if(!thandle)
{
return 0;
}
return 1;
}

int osal_thread_create_rt(void *thandle, int stacksize, void *func, void *param)
{
thandle = task_spawn ("worker_rt", func, 15 ,stacksize, param);
if(!thandle)
{
return 0;
}
return 1;
}
Loading

0 comments on commit f140496

Please sign in to comment.