platform_thread.h 1012 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * @Author: jiejie
  3. * @Github: https://github.com/jiejieTop
  4. * @Date: 2019-12-15 18:31:44
  5. * @LastEditTime : 2020-01-08 20:24:17
  6. * @Description: the code belongs to jiejie, please keep the author information and source code according to the license.
  7. */
  8. #ifndef _PLATFORM_THREAD_H_
  9. #define _PLATFORM_THREAD_H_
  10. #include "tos_k.h"
  11. typedef struct platform_thread {
  12. k_task_t thread;
  13. } platform_thread_t;
  14. platform_thread_t *platform_thread_init( const char *name,
  15. void (*entry)(void *),
  16. void * const param,
  17. unsigned int stack_size,
  18. unsigned int priority,
  19. unsigned int tick);
  20. void platform_thread_startup(platform_thread_t* thread);
  21. void platform_thread_stop(platform_thread_t* thread);
  22. void platform_thread_start(platform_thread_t* thread);
  23. void platform_thread_destroy(platform_thread_t* thread);
  24. #endif