40 lines
755 B
C
40 lines
755 B
C
#ifndef __OSPVERSION__
|
|
#define __OSPVERSION__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define MAX_BUF_VERSION_LEN (128)
|
|
|
|
typedef struct OspVersionInfo {
|
|
char platform_commit[MAX_BUF_VERSION_LEN];
|
|
char platform_tag[MAX_BUF_VERSION_LEN];
|
|
char platform_build_date[MAX_BUF_VERSION_LEN/2];
|
|
} OspVersionInfo_t;
|
|
|
|
/*
|
|
* @brief: 将ARM、SPU侧版本信息print至终端
|
|
* @Date: 2024.05.17
|
|
* @param: void
|
|
* @ret: void
|
|
*/
|
|
void osp_soft_version_show();
|
|
|
|
/*
|
|
* @brief: 获取ARM侧的版本信息
|
|
* @Date: 2024.05.17
|
|
* @param: pVersion [out]: 版本信息结构体指针
|
|
* @ret: 0-success, 1-error
|
|
*/
|
|
int32_t osp_arm_version_get(OspVersionInfo_t *pVersion);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __OSPVERSION__ */
|
|
|
|
|