fix:更新注释等
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file user\global\board_config.h
|
||||
* @author luhuaishuai
|
||||
* @file User\Global\board_config.h
|
||||
* @author 路淮
|
||||
* @version v0.1
|
||||
* @date 2023-10-11
|
||||
* @brief Briefly describe the function of your function
|
||||
* @date 2026-05-21
|
||||
* @brief 板级配置头文件
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef __BOARD_CONFIG_H
|
||||
@@ -16,4 +16,6 @@
|
||||
#define LINK_APP_PORT 6002 // 桩通讯端口
|
||||
#define LINK_STAKE_PORT 6001 // 桩通讯端口
|
||||
|
||||
#define DEBUG 1 // 调试模式
|
||||
|
||||
#endif /* __BOARD_CONFIG_H */
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file User\Global\g_dcpile.c
|
||||
* @author 路淮
|
||||
* @version v0.1
|
||||
* @date 2026-05-21
|
||||
* @brief 充电桩管理器
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "g_dcpile.h"
|
||||
|
||||
/*全局充电桩管理器*/
|
||||
@@ -15,8 +25,9 @@ const uint8_t piles_serial[6][7] = {
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief 初始化充电桩管理器
|
||||
* @brief init_chargers:初始化充电桩管理器
|
||||
* @note 初始化充电桩管理器,设置充电桩数量和每个充电桩的初始状态
|
||||
* @retval none
|
||||
*/
|
||||
void init_chargers(void)
|
||||
{
|
||||
|
||||
@@ -1,8 +1,18 @@
|
||||
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file User\Global\g_dcpile.h
|
||||
* @author 路淮
|
||||
* @version v0.1
|
||||
* @date 2026-05-21
|
||||
* @brief 充电桩管理头文件
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef __DC_PILE_H
|
||||
#define __DC_PILE_H
|
||||
|
||||
/* includes ----------------------------------------------------------------------------------------------*/
|
||||
/* includes ------------------------------------------------------------------*/
|
||||
#include "global.h"
|
||||
|
||||
#define MAX_CHARGER_COUNT 2 // 充电桩数量
|
||||
@@ -37,7 +47,6 @@ typedef struct
|
||||
PACK_DATA_0X3B fee_data; // 计费数据
|
||||
PACK_DATA_0X23 bms_demand; // 充电过程BMS需求、充电机输出
|
||||
PACK_DATA_0X25 bms_info; // 充电过程BMS信息
|
||||
|
||||
} ChargerGun;
|
||||
|
||||
/* 单个充电桩结构体*/
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file user\global\g_init.c
|
||||
* @author luhuaishuai
|
||||
* @version v0.1
|
||||
* @date 2026-1-12
|
||||
* @brief Briefly describe the function of your function
|
||||
******************************************************************************
|
||||
*/
|
||||
******************************************************************************
|
||||
* @file User\Global\g_init.c
|
||||
* @author 路淮
|
||||
* @version v0.1
|
||||
* @date 2026-05-21
|
||||
* @brief 全局初始化
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "g_init.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file User\Global\g_init.h
|
||||
* @author 路淮
|
||||
* @version v0.1
|
||||
* @date 2026-05-21
|
||||
* @brief 全局初始化头文件
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef __GINIT_H
|
||||
#define __GINIT_H
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file user\global\g_runtime.c
|
||||
* @author luhuaishuai
|
||||
* @version v0.1
|
||||
* @date 2026-1-12
|
||||
* @brief Briefly describe the function of your function
|
||||
******************************************************************************
|
||||
*/
|
||||
******************************************************************************
|
||||
* @file User\Global\g_runtime.c
|
||||
* @author 路淮
|
||||
* @version v0.1
|
||||
* @date 2026-05-21
|
||||
* @brief 运行时统计
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/* Includes -------------------------------------------------------------------*/
|
||||
#include "g_runtime.h"
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file User\Global\g_runtime.h
|
||||
* @author 路淮
|
||||
* @version v0.1
|
||||
* @date 2026-05-21
|
||||
* @brief 运行时统计头文件
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef __GRUNTIME_H
|
||||
#define __GRUNTIME_H
|
||||
|
||||
|
||||
/* includes ----------------------------------------------------------------------------------------------*/
|
||||
/* includes ------------------------------------------------------------------*/
|
||||
#include "global.h"
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file user\global\global.h
|
||||
* @author liangky
|
||||
* @file User\Global\global.h
|
||||
* @author 路淮
|
||||
* @version v0.1
|
||||
* @date 2023-10-11
|
||||
* @brief Briefly describe the function of your function
|
||||
* @date 2026-05-21
|
||||
* @brief 全局头文件
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef __GLOBAL_H
|
||||
@@ -62,17 +62,8 @@
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
||||
|
||||
|
||||
|
||||
#define PI 3.1415926f
|
||||
|
||||
#define SOFTWARE_VERSION "JSBRv1.2" // 软件版本
|
||||
#define YKC_VERSION 0x10 // YKC 协议版本 v1.6
|
||||
|
||||
#define NET_CONN_TYPE 0 // 0: 4G, 1: LAN
|
||||
|
||||
#define DEBUG 1 // 调试模式
|
||||
|
||||
|
||||
/*- I/O 输出-*/
|
||||
|
||||
Reference in New Issue
Block a user