33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/********************************************************************
|
||
Copyright (c) 2025 Xiangyu Medical Co.,Ltd. All rights reserved.
|
||
FileName : spi.c
|
||
Author : xiaozhengsheng
|
||
Version : V1.0
|
||
Date :
|
||
Note :
|
||
History :
|
||
********************************************************************/
|
||
/* Includes ------------------------------------------------------*/
|
||
#include "user_config.h"
|
||
//Log需要引用的头文件
|
||
#include "nrf_log.h"
|
||
#include "nrf_log_ctrl.h"
|
||
#include "nrf_log_default_backends.h"
|
||
|
||
version_t softVersion={
|
||
.major = 1,
|
||
.minor = 0,
|
||
.patch = 0, // 修订号 (.0)
|
||
.build = 0, // 构建号 (.0)
|
||
.testVersion = {"alpha1-1"} //内部测试版本,正式发布需要填0,alpha内部测试
|
||
};
|
||
|
||
char softWareVersion[SOFT_VERSION_MAX_LENGTH] = {0}; //软件版本号
|
||
|
||
void read_config_user_config(void)
|
||
{
|
||
snprintf(softWareVersion, SOFT_VERSION_MAX_LENGTH, "V%d.%d.%d.%d-%s", softVersion.major, softVersion.minor, softVersion.patch, softVersion.build, softVersion.testVersion);
|
||
NRF_LOG_INFO("Software Version: %s", softWareVersion);
|
||
NRF_LOG_INFO("product model: HL-PDJ-1");
|
||
}
|