core/thread.c: thread_create fix priority type
Bugfix: changing type of priority to uint8_t to be consistent with struct _thread
This commit is contained in:
parent
d6356bdc08
commit
1d16b3d5dc
@ -341,7 +341,7 @@ struct _thread {
|
|||||||
*/
|
*/
|
||||||
kernel_pid_t thread_create(char *stack,
|
kernel_pid_t thread_create(char *stack,
|
||||||
int stacksize,
|
int stacksize,
|
||||||
char priority,
|
uint8_t priority,
|
||||||
int flags,
|
int flags,
|
||||||
thread_task_func_t task_func,
|
thread_task_func_t task_func,
|
||||||
void *arg,
|
void *arg,
|
||||||
|
|||||||
@ -143,7 +143,7 @@ uintptr_t thread_measure_stack_free(char *stack)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
kernel_pid_t thread_create(char *stack, int stacksize, char priority, int flags, thread_task_func_t function, void *arg, const char *name)
|
kernel_pid_t thread_create(char *stack, int stacksize, uint8_t priority, int flags, thread_task_func_t function, void *arg, const char *name)
|
||||||
{
|
{
|
||||||
if (priority >= SCHED_PRIO_LEVELS) {
|
if (priority >= SCHED_PRIO_LEVELS) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user