VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
Examples
File List
Globals
source
shell
sys
espidf
include
esp_idf_version.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright(C)2009-2026 by VSF Team *
3
* *
4
* Licensed under the Apache License, Version 2.0 (the "License"); *
5
* you may not use this file except in compliance with the License. *
6
* You may obtain a copy of the License at *
7
* *
8
* http://www.apache.org/licenses/LICENSE-2.0 *
9
* *
10
* Unless required by applicable law or agreed to in writing, software *
11
* distributed under the License is distributed on an "AS IS" BASIS, *
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13
* See the License for the specific language governing permissions and *
14
* limitations under the License. *
15
* *
16
****************************************************************************/
17
18
/*
19
* Clean-room re-implementation of ESP-IDF public API "esp_idf_version.h".
20
*
21
* Baseline: matches the version declared in vsf_espidf_cfg.h.
22
*/
23
24
#ifndef __VSF_ESPIDF_ESP_IDF_VERSION_H__
25
#define __VSF_ESPIDF_ESP_IDF_VERSION_H__
26
27
#include "../vsf_espidf_cfg.h"
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
#define ESP_IDF_VERSION_MAJOR VSF_ESPIDF_CFG_VERSION_MAJOR
34
#define ESP_IDF_VERSION_MINOR VSF_ESPIDF_CFG_VERSION_MINOR
35
#define ESP_IDF_VERSION_PATCH VSF_ESPIDF_CFG_VERSION_PATCH
36
37
#define ESP_IDF_VERSION_VAL(major, minor, patch) \
38
(((major) << 16) | ((minor) << 8) | (patch))
39
40
#define ESP_IDF_VERSION ESP_IDF_VERSION_VAL(ESP_IDF_VERSION_MAJOR, \
41
ESP_IDF_VERSION_MINOR, \
42
ESP_IDF_VERSION_PATCH)
43
44
const
char
*
esp_get_idf_version
(
void
);
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
// __VSF_ESPIDF_ESP_IDF_VERSION_H__
esp_get_idf_version
const char * esp_get_idf_version(void)
Definition
esp_system_port.c:236
Generated from commit:
vsfteam/vsf@c3767bf