#ifndef _TASK_CFG_H_ #define _TASK_CFG_H_ #include "task.h" #define TASK_CFG_MAX_TASK_NUM 10 typedef struct { task_t task; uint32_t period; uint32_t next_time; } task_cfg_t; extern task_cfg_t task_cfg[TASK_CFG_MAX_TASK_NUM]; extern uint8_t task_num; #endif