# time_task **Repository Path**: huhonghaohhh/time_task ## Basic Information - **Project Name**: time_task - **Description**: 时间片轮询框架(裸机、前后台系统) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-12-11 - **Last Updated**: 2022-12-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 文件说明 1.task.c task.h 定义任务扫描函数以及计数器的计数 2.demo.c 对时间片轮询的应用(执行任务扫描函数) 本文件提供的只是一种设计思路,只提供一些基本实例, 详细设计时应根据需求进行修改和补充 ### 任务结构体 //Task_Handle结构体类型 typedef Task_Handle { UINT8 timeCnt;//任务多久执行一次的计时 UINT8 runFlg;//任务是否执行标志 void (*pWorkFun)(void);//任务函数,实现相应的业务逻辑 }taskHandle_t;