You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
502 B
23 lines
502 B
/*
|
|
* vtask.h
|
|
*
|
|
* Created on: 2019-3-22
|
|
* Author: abagu
|
|
*/
|
|
|
|
#ifndef VTASK_H_
|
|
#define VTASK_H_
|
|
|
|
#include <ti/sysbios/knl/Task.h>
|
|
|
|
//#define VTASK_PRI_LEVEL_DEFAULT OS_TASKPRINORM // priority low 0 --> high 31
|
|
#define VTASK_STACK_SIZE (0x80000) //stack size 512K
|
|
|
|
typedef struct vtask *vtask_t;
|
|
vtask_t vtask_create(void (*vtk_pthread)(void));
|
|
vtask_t vtask_create_2(void (*vtk_pthread)(void *arg), void *arg);
|
|
void vtask_delete(vtask_t tk);
|
|
|
|
void vtask_sleep(int ms);
|
|
|
|
#endif /* VTASK_H_ */
|
|
|