M5UnitUnified
0.1.2 git rev:98f967c
Loading...
Searching...
No Matches
identify_functions.hpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2025 M5Stack Technology CO LTD
3
*
4
* SPDX-License-Identifier: MIT
5
*/
10
#ifndef M5_UNIT_UNIFIED_IDENTIFY_FUNCTIONS_HPP
11
#define M5_UNIT_UNIFIED_IDENTIFY_FUNCTIONS_HPP
12
13
// Detect ESP-IDF version
14
#if __has_include(<esp_idf_version.h>)
15
#include <esp_idf_version.h>
16
#else
// esp_idf_version.h has been introduced in Arduino 1.0.5 (ESP-IDF3.3)
17
#define ESP_IDF_VERSION_VAL(major, minor, patch) ((major << 16) | (minor << 8) | (patch))
18
#define ESP_IDF_VERSION ESP_IDF_VERSION_VAL(3, 2, 0)
19
#endif
20
21
// RMT
22
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
23
#pragma message "Using RMT v2"
24
#define M5_UNIT_UNIFIED_USING_RMT_V2
25
#else
26
#pragma message "Using RMT v1"
27
#endif
28
29
#endif
src
m5_unit_component
identify_functions.hpp
Generated by
1.11.0