#ifndef __SYSTEM_FREERTIO_DEFINE_H__
#define __SYSTEM_FREERTIO_DEFINE_H__
#include <stdio.h>
#include <stdint.h>

//内部定义的id
#define RS485_SEND_EVENT_ID                 1

#define HISTORY_TASK_EVENT_ID               3   //历史数据记录
#define TIMER_TASK_EVENT_ID                 4   //定时功能任务

//WIFI事件id
#define WIFI_RESET_EVENT_ID                 5
#define WFII_DATA_UPDATA_EVENT_ID           6
#define WIFI_GET_NET_TIME_EVENT_ID          7
#define WIFI_REPLY_SOC_EVENT_ID             8
#define WIFI_RESET_NETTING_WORK_SM_EVENT_ID 9
#define WIFI_RESET_NETTING_WORK_AP_EVENT_ID 10
#define WIFI_TEST_EVENT_ID                  11
#define WFII_ALL_DATA_EVENT_ID              12

//iic事件id
#define WRITE_WIFI_EN_EVENT_ID              16  //wifi使能控制
#define READ_ADC_VALUE_EVENT_ID             17  //读温度ADC
#define WEITE_LCD_PWM_EVENT_ID              18  //控制屏幕背光
#define WRITE_BUZZER_EVENT_ID               19  //按键蜂鸣器
#define WRITE_BUZZER_WARN_EVENT_ID          20  //故障蜂鸣器
#define RTC_WRITE_EVENT_ID                  21  //写RTC时间
#define RTC_READ_EVENT_ID                   22  //读取RTC时间

//任务优先级
#define PROGRAMME_FLASH_PRIORITY            20  //编程任务
#define PROGRAMME_PRIORITY                  21  //编程任务
#define WIFI_TASK_CHECK_PRIORITY            22  //wifi DP点检测发送任务 
#define RS485_TASK_TX_PRIORITY              23  //485发送任务
#define RS485_TASK_RX_PRIORITY              24  //485接收任务
#define GPTIMER_TASK_PRIORITY               25  //定时器任务
#define IIC_TASK_PRIORITY                   26  //IIC任务
#define TIMING_TASK_PRIORITY                27  //定时功能任务
#define HISTORY_TASK_PRIORITY               28  //历史数据任务
#define UI_TASK_PRIORITY                    29  //UI定时刷新任务
#define WIFI_TASK_TX_PRIORITY               30  //wfii发送任务
#define WIFI_TASK_RX_PRIORITY               31  //wifi接收任务

typedef struct 
{
    /* data */
    uint16_t type_id;
    uint8_t  en;
    uint8_t  data;
}system_drv_event_type_t;


#endif
