2022-04-01 16:59:22 +00:00
|
|
|
/********************************************************************************************************
|
|
|
|
* @file version_cfg.h
|
|
|
|
*
|
|
|
|
* @brief This is the header file for version_cfg
|
|
|
|
*
|
|
|
|
* @author Zigbee Group
|
|
|
|
* @date 2021
|
|
|
|
*
|
|
|
|
* @par Copyright (c) 2021, Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK")
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*******************************************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../common/comm_cfg.h"
|
|
|
|
|
|
|
|
#if defined(MCU_CORE_826x)
|
2022-04-01 17:14:59 +00:00
|
|
|
#if (CHIP_8269)
|
|
|
|
#define CHIP_TYPE TLSR_8269
|
|
|
|
#else
|
|
|
|
#define CHIP_TYPE TLSR_8267
|
|
|
|
#endif
|
2022-04-01 16:59:22 +00:00
|
|
|
#elif defined(MCU_CORE_8258)
|
2022-04-01 17:14:59 +00:00
|
|
|
#define CHIP_TYPE TLSR_8258_512K // TLSR_8258_1M
|
2022-04-01 16:59:22 +00:00
|
|
|
#elif defined(MCU_CORE_8278)
|
2022-04-01 17:14:59 +00:00
|
|
|
#define CHIP_TYPE TLSR_8278
|
2022-04-01 16:59:22 +00:00
|
|
|
#elif defined(MCU_CORE_B91)
|
2022-04-01 17:14:59 +00:00
|
|
|
#define CHIP_TYPE TLSR_9518
|
2022-04-01 16:59:22 +00:00
|
|
|
#endif
|
|
|
|
|
2022-04-01 17:14:59 +00:00
|
|
|
#define APP_RELEASE 0x10 // app release 1.0
|
|
|
|
#define APP_BUILD 0x01 // app build 01
|
|
|
|
#define STACK_RELEASE 0x30 // stack release 3.0
|
|
|
|
#define STACK_BUILD 0x01 // stack build 01
|
2022-04-01 16:59:22 +00:00
|
|
|
|
|
|
|
/*********************************************************************************************
|
|
|
|
* During OTA upgrade, the upgraded device will check the rules of the following three fields.
|
|
|
|
* Refer to ZCL OTA specification for details.
|
|
|
|
*/
|
2022-04-01 17:14:59 +00:00
|
|
|
#define MANUFACTURER_CODE_TELINK 0x124f // Gledopto ID
|
|
|
|
#define IMAGE_TYPE ((CHIP_TYPE << 8) | IMAGE_TYPE_LIGHT)
|
|
|
|
#define FILE_VERSION ((APP_RELEASE << 24) | (APP_BUILD << 16) | (STACK_RELEASE << 8) | STACK_BUILD)
|
2022-04-01 16:59:22 +00:00
|
|
|
|
|
|
|
/* Pre-compiled link configuration. */
|
2022-04-01 17:14:59 +00:00
|
|
|
#define IS_BOOT_LOADER_IMAGE 0
|
|
|
|
#define RESV_FOR_APP_RAM_CODE_SIZE 0
|
|
|
|
#define IMAGE_OFFSET APP_IMAGE_ADDR
|