添加 Kconfig 样例,添加基础的板及配置

This commit is contained in:
LokLiang
2025-02-20 12:55:19 +08:00
parent 6e18d7a3d7
commit 73df531ac3
10 changed files with 124 additions and 172 deletions

35
app/config/version.h Normal file
View File

@@ -0,0 +1,35 @@
#pragma once
/* MCU 平台 */
#define DEVICE_TYPE CONFIG_IDF_TARGET
/* 固件版本号 */
#if (CONFIG_PRODUCT_ID_DEV)
#define PRODUCT_ID "SB-DEV"
#define BOARD_CONFIG_DATA_VER 0x0101 /* 对应 cfg_board_t::version */
#define APP_CONFIG_DATA_VER 0 /* 对应 cfg_app_t::version */
#define LEDSTRIP_CONFIG_DATA_VER 0x00000001 /* 对应 cfg_led_strip_t ::version */
#define FW_VERSION_MAIN 0
#define FW_VERSION_MINOR 0
#define FW_VERSION_BUILD 1
#elif (CONFIG_PRODUCT_ID_SBLED1)
#define PRODUCT_ID "SBLED1"
#define BOARD_CONFIG_DATA_VER 0x0101 /* 对应 cfg_board_t::version */
#define APP_CONFIG_DATA_VER 0 /* 对应 cfg_app_t::version */
#define LEDSTRIP_CONFIG_DATA_VER 0x00000001 /* 对应 cfg_led_strip_t ::version */
#define FW_VERSION_MAIN 6
#define FW_VERSION_MINOR 1
#define FW_VERSION_BUILD 2
#else
#error 未定义配置
#endif
#include "./version_build.h"