Skip to content

Commit

Permalink
Fix the rtos_task_create signature for ecos.
Browse files Browse the repository at this point in the history
  • Loading branch information
ressac authored and Peter Soetens committed May 5, 2011
1 parent b0124b6 commit 8c45e02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rtt/os/ecos/fosi_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ namespace RTT
int priority,
const char * name,
int sched_type,
size_t stack_size,
void * (*start_routine)(void *),
ThreadInterface* obj) {
/* sched_type is unused in eCos */
Expand All @@ -67,7 +68,7 @@ namespace RTT
task->name = strcpy( (char*)malloc( (strlen(name) + 1) * sizeof(char)), name);

// Allocate necessary stack...
task->stack = (char *)malloc(OROSEM_OS_ECOS_STACK_SIZE);
task->stack = (char *)malloc(stack_size?stack_size:OROSEM_OS_ECOS_STACK_SIZE);

// Create the thread
cyg_thread_create((cyg_addrword_t) priority, // priority
Expand Down

0 comments on commit 8c45e02

Please sign in to comment.