forked from gary/ems
2
0
Fork 0
sun_ems/ems_c/app/app_task_regedit.h

67 lines
2.0 KiB
C
Raw Normal View History

2025-05-13 17:49:49 +08:00
/*****************************************************************************
* @copyright 2024-202, . POWER SUPPLY CO., LTD.
* @file xxx.c
* @brief xxxx
* @author xx
* @date 2024/08/30
* @remark
*****************************************************************************/
#ifndef APP_TASK_REGEDIT_H
#define APP_TASK_REGEDIT_H
#pragma once
#include <stdio.h>
#include <sched.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <math.h>
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/shm.h>
#include "app_parse.h"
#include "app_comm.h"
#include "kit_data.h"
#include "bsp_modbus.h"
#include "bsp_ntp.h"
#include "kit_log.h"
#include "app_parse.h"
2025-06-21 16:57:11 +08:00
2025-05-13 17:49:49 +08:00
#include "drv_gpio.h"
#define THREAD_PRIORITY_MAX 90
#define INIT_ERR_DB 1
#define INIT_ERR_EMS 2
#define INIT_ERR_DEV 4
#define INIT_ERR_NORTHCFG 8
// typedef void* (*RegeditThreadMan)(void* arg);
// typedef struct
// {
// RegeditThreadMan getapi;
// } ThreadMan_T; // modify by wp at 2023-03-01 删除优先级设置
// uint8_t initSystem(void* arg);
// void regedit_thread_entry(void* map_t);
/*********************************************************************
* @brief EMS初始化
* @param[in] arg
* @return 0- 1-
*********************************************************************/
uint8_t initEmsSystem(void *arg);
/*********************************************************************
* @brief
* @param[in] arg
* @return void
*********************************************************************/
void regeditThreadEntry(void *map_t); // 创建线程入口
/*********************************************************************
* @brief EMS的web后台
* @return void
*********************************************************************/
// void runEmsWebApi();
#endif // APP_TASK_REGEDIT_H