56 lines
2.1 KiB
C
56 lines
2.1 KiB
C
/**
|
|
******************************************************************************
|
|
* @file app_ver.h
|
|
* @author AMG Energy Solution Team
|
|
* @version V1.0.0
|
|
* @date 07-Feb-2022
|
|
* @brief This file provides all the header of the application version.
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
|
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
|
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
|
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
|
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
|
*
|
|
* <h2><center>© COPYRIGHT 2022 AMG</center></h2>
|
|
******************************************************************************
|
|
*/
|
|
|
|
/** @addtogroup mBMS2
|
|
* @{
|
|
*/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __APP_VER_H__
|
|
#define __APP_VER_H__
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "hc32_ddl.h"
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
/* Exported constants --------------------------------------------------------*/
|
|
#define BD_MODEL "mBMS\0"
|
|
|
|
/* Secret Identifier for Hardware / Build Revision */
|
|
#define DEV_SECRET_SIG 0x57 // 'W' (Developer signature)
|
|
#define DEV_HW_TYPE 0x22 // 0x22: V2 (2nd HW, HC32F460 + BQ76940 + Relay)
|
|
#define DEV_BUILD_REV 0x02 // R402 build
|
|
#define DEV_HW_STRING "HW2:HC32+BQ76940"
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
/* Exported functions ------------------------------------------------------- */
|
|
|
|
void GetAppVersion(uint8_t *ver);
|
|
void GetAppSecretId(uint8_t *secret);
|
|
void APPVerDisplay(void);
|
|
void GET_BUILD_DATETIME(uint8_t *datetime);
|
|
|
|
uint16_t GetAppVersionStr(uint8_t *vStr);
|
|
|
|
#endif
|
|
|
|
/*******************(C)COPYRIGHT 2022 AMG ********************END OF FILE******/
|