1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

Merge pull request #110 from mehlis/master

fix changed prototype parameter 1 of thread_stack_init from void* to void(*)(void)
This commit is contained in:
Christian Mehlis 2013-08-09 12:41:36 -07:00
commit 93e470eb80
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ void board_init(void);
*
* @return stack pointer
*/
char *thread_stack_init(void *task_func, void *stack_start, int stack_size);
char *thread_stack_init(void (*task_func)(void), void *stack_start, int stack_size);
/**
* @brief Removes thread from scheduler and set status to STATUS_STOPPED

View File

@ -38,7 +38,7 @@ void thread_yield(void)
* Processor specific routine - here for ARM7
* sizeof(void*) = sizeof(int)
*--------------------------------------------------------------------------*/
char *thread_stack_init(void *task_func, void *stack_start, int stack_size)
char *thread_stack_init(void (*task_func)(void), void *stack_start, int stack_size)
{
unsigned int *stk;
int i;

View File

@ -46,7 +46,7 @@ void cpu_switch_context_exit(void)
//----------------------------------------------------------------------------
// Processor specific routine - here for MSP
//----------------------------------------------------------------------------
char *thread_stack_init(void *task_func, void *stack_start, int stack_size)
char *thread_stack_init(void (*task_func)(void), void *stack_start, int stack_size)
{
unsigned short *stk;
stk = (unsigned short *)(stack_start + stack_size);

View File

@ -45,7 +45,7 @@ void thread_print_stack(void)
return;
}
char *thread_stack_init(void *task_func, void *stack_start, int stacksize)
char *thread_stack_init(void (*task_func)(void), void *stack_start, int stacksize)
{
unsigned int *stk;
ucontext_t *p;