mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	refactor(gpio): per-target gpio number definition
This commit is contained in:
		@@ -1,13 +1,13 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 *
 | 
			
		||||
 * SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "sdkconfig.h"
 | 
			
		||||
#include "soc/soc_caps.h"
 | 
			
		||||
#include "soc/gpio_num.h"
 | 
			
		||||
#include "esp_bit_defs.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
@@ -69,279 +69,6 @@ typedef enum {
 | 
			
		||||
#define GPIO_PIN_REG_47          IO_MUX_GPIO47_REG
 | 
			
		||||
#define GPIO_PIN_REG_48          IO_MUX_GPIO48_REG
 | 
			
		||||
 | 
			
		||||
#if CONFIG_IDF_TARGET_ESP32
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_22 = 22,   /*!< GPIO22, input and output */
 | 
			
		||||
    GPIO_NUM_23 = 23,   /*!< GPIO23, input and output */
 | 
			
		||||
    GPIO_NUM_25 = 25,   /*!< GPIO25, input and output */
 | 
			
		||||
    GPIO_NUM_26 = 26,   /*!< GPIO26, input and output */
 | 
			
		||||
    GPIO_NUM_27 = 27,   /*!< GPIO27, input and output */
 | 
			
		||||
    GPIO_NUM_28 = 28,   /*!< GPIO28, input and output */
 | 
			
		||||
    GPIO_NUM_29 = 29,   /*!< GPIO29, input and output */
 | 
			
		||||
    GPIO_NUM_30 = 30,   /*!< GPIO30, input and output */
 | 
			
		||||
    GPIO_NUM_31 = 31,   /*!< GPIO31, input and output */
 | 
			
		||||
    GPIO_NUM_32 = 32,   /*!< GPIO32, input and output */
 | 
			
		||||
    GPIO_NUM_33 = 33,   /*!< GPIO33, input and output */
 | 
			
		||||
    GPIO_NUM_34 = 34,   /*!< GPIO34, input mode only */
 | 
			
		||||
    GPIO_NUM_35 = 35,   /*!< GPIO35, input mode only */
 | 
			
		||||
    GPIO_NUM_36 = 36,   /*!< GPIO36, input mode only */
 | 
			
		||||
    GPIO_NUM_37 = 37,   /*!< GPIO37, input mode only */
 | 
			
		||||
    GPIO_NUM_38 = 38,   /*!< GPIO38, input mode only */
 | 
			
		||||
    GPIO_NUM_39 = 39,   /*!< GPIO39, input mode only */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
/** @endcond */
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
#elif CONFIG_IDF_TARGET_ESP32S2
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_26 = 26,   /*!< GPIO26, input and output */
 | 
			
		||||
    GPIO_NUM_27 = 27,   /*!< GPIO27, input and output */
 | 
			
		||||
    GPIO_NUM_28 = 28,   /*!< GPIO28, input and output */
 | 
			
		||||
    GPIO_NUM_29 = 29,   /*!< GPIO29, input and output */
 | 
			
		||||
    GPIO_NUM_30 = 30,   /*!< GPIO30, input and output */
 | 
			
		||||
    GPIO_NUM_31 = 31,   /*!< GPIO31, input and output */
 | 
			
		||||
    GPIO_NUM_32 = 32,   /*!< GPIO32, input and output */
 | 
			
		||||
    GPIO_NUM_33 = 33,   /*!< GPIO33, input and output */
 | 
			
		||||
    GPIO_NUM_34 = 34,   /*!< GPIO34, input and output */
 | 
			
		||||
    GPIO_NUM_35 = 35,   /*!< GPIO35, input and output */
 | 
			
		||||
    GPIO_NUM_36 = 36,   /*!< GPIO36, input and output */
 | 
			
		||||
    GPIO_NUM_37 = 37,   /*!< GPIO37, input and output */
 | 
			
		||||
    GPIO_NUM_38 = 38,   /*!< GPIO38, input and output */
 | 
			
		||||
    GPIO_NUM_39 = 39,   /*!< GPIO39, input and output */
 | 
			
		||||
    GPIO_NUM_40 = 40,   /*!< GPIO40, input and output */
 | 
			
		||||
    GPIO_NUM_41 = 41,   /*!< GPIO41, input and output */
 | 
			
		||||
    GPIO_NUM_42 = 42,   /*!< GPIO42, input and output */
 | 
			
		||||
    GPIO_NUM_43 = 43,   /*!< GPIO43, input and output */
 | 
			
		||||
    GPIO_NUM_44 = 44,   /*!< GPIO44, input and output */
 | 
			
		||||
    GPIO_NUM_45 = 45,   /*!< GPIO45, input and output */
 | 
			
		||||
    GPIO_NUM_46 = 46,   /*!< GPIO46, input mode only */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
/** @endcond */
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
#elif CONFIG_IDF_TARGET_ESP32S3
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_26 = 26,   /*!< GPIO26, input and output */
 | 
			
		||||
    GPIO_NUM_27 = 27,   /*!< GPIO27, input and output */
 | 
			
		||||
    GPIO_NUM_28 = 28,   /*!< GPIO28, input and output */
 | 
			
		||||
    GPIO_NUM_29 = 29,   /*!< GPIO29, input and output */
 | 
			
		||||
    GPIO_NUM_30 = 30,   /*!< GPIO30, input and output */
 | 
			
		||||
    GPIO_NUM_31 = 31,   /*!< GPIO31, input and output */
 | 
			
		||||
    GPIO_NUM_32 = 32,   /*!< GPIO32, input and output */
 | 
			
		||||
    GPIO_NUM_33 = 33,   /*!< GPIO33, input and output */
 | 
			
		||||
    GPIO_NUM_34 = 34,   /*!< GPIO34, input and output */
 | 
			
		||||
    GPIO_NUM_35 = 35,   /*!< GPIO35, input and output */
 | 
			
		||||
    GPIO_NUM_36 = 36,   /*!< GPIO36, input and output */
 | 
			
		||||
    GPIO_NUM_37 = 37,   /*!< GPIO37, input and output */
 | 
			
		||||
    GPIO_NUM_38 = 38,   /*!< GPIO38, input and output */
 | 
			
		||||
    GPIO_NUM_39 = 39,   /*!< GPIO39, input and output */
 | 
			
		||||
    GPIO_NUM_40 = 40,   /*!< GPIO40, input and output */
 | 
			
		||||
    GPIO_NUM_41 = 41,   /*!< GPIO41, input and output */
 | 
			
		||||
    GPIO_NUM_42 = 42,   /*!< GPIO42, input and output */
 | 
			
		||||
    GPIO_NUM_43 = 43,   /*!< GPIO43, input and output */
 | 
			
		||||
    GPIO_NUM_44 = 44,   /*!< GPIO44, input and output */
 | 
			
		||||
    GPIO_NUM_45 = 45,   /*!< GPIO45, input and output */
 | 
			
		||||
    GPIO_NUM_46 = 46,   /*!< GPIO46, input and output */
 | 
			
		||||
    GPIO_NUM_47 = 47,   /*!< GPIO47, input and output */
 | 
			
		||||
    GPIO_NUM_48 = 48,   /*!< GPIO48, input and output */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
/** @endcond */
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
#elif CONFIG_IDF_TARGET_ESP32C3
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
/** @endcond */
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
#elif CONFIG_IDF_TARGET_ESP32C2
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
/** @endcond */
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
#elif CONFIG_IDF_TARGET_ESP32C6
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_22 = 22,   /*!< GPIO22, input and output */
 | 
			
		||||
    GPIO_NUM_23 = 23,   /*!< GPIO23, input and output */
 | 
			
		||||
    GPIO_NUM_24 = 24,   /*!< GPIO24, input and output */
 | 
			
		||||
    GPIO_NUM_25 = 25,   /*!< GPIO25, input and output */
 | 
			
		||||
    GPIO_NUM_26 = 26,   /*!< GPIO26, input and output */
 | 
			
		||||
    GPIO_NUM_27 = 27,   /*!< GPIO27, input and output */
 | 
			
		||||
    GPIO_NUM_28 = 28,   /*!< GPIO28, input and output */
 | 
			
		||||
    GPIO_NUM_29 = 29,   /*!< GPIO29, input and output */
 | 
			
		||||
    GPIO_NUM_30 = 30,   /*!< GPIO30, input and output */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
/** @endcond */
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
#elif CONFIG_IDF_TARGET_ESP32H2
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_22 = 22,   /*!< GPIO22, input and output */
 | 
			
		||||
    GPIO_NUM_23 = 23,   /*!< GPIO23, input and output */
 | 
			
		||||
    GPIO_NUM_24 = 24,   /*!< GPIO24, input and output */
 | 
			
		||||
    GPIO_NUM_25 = 25,   /*!< GPIO25, input and output */
 | 
			
		||||
    GPIO_NUM_26 = 26,   /*!< GPIO26, input and output */
 | 
			
		||||
    GPIO_NUM_27 = 27,   /*!< GPIO27, input and output */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
/** @endcond */
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_INTR_DISABLE = 0,     /*!< Disable GPIO interrupt                             */
 | 
			
		||||
    GPIO_INTR_POSEDGE = 1,     /*!< GPIO interrupt type : rising edge                  */
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										62
									
								
								components/soc/esp32/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										62
									
								
								components/soc/esp32/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,62 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 *
 | 
			
		||||
 * SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief GPIO number
 | 
			
		||||
 */
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,   /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_22 = 22,   /*!< GPIO22, input and output */
 | 
			
		||||
    GPIO_NUM_23 = 23,   /*!< GPIO23, input and output */
 | 
			
		||||
    GPIO_NUM_25 = 25,   /*!< GPIO25, input and output */
 | 
			
		||||
    GPIO_NUM_26 = 26,   /*!< GPIO26, input and output */
 | 
			
		||||
    GPIO_NUM_27 = 27,   /*!< GPIO27, input and output */
 | 
			
		||||
    GPIO_NUM_28 = 28,   /*!< GPIO28, input and output */
 | 
			
		||||
    GPIO_NUM_29 = 29,   /*!< GPIO29, input and output */
 | 
			
		||||
    GPIO_NUM_30 = 30,   /*!< GPIO30, input and output */
 | 
			
		||||
    GPIO_NUM_31 = 31,   /*!< GPIO31, input and output */
 | 
			
		||||
    GPIO_NUM_32 = 32,   /*!< GPIO32, input and output */
 | 
			
		||||
    GPIO_NUM_33 = 33,   /*!< GPIO33, input and output */
 | 
			
		||||
    GPIO_NUM_34 = 34,   /*!< GPIO34, input mode only */
 | 
			
		||||
    GPIO_NUM_35 = 35,   /*!< GPIO35, input mode only */
 | 
			
		||||
    GPIO_NUM_36 = 36,   /*!< GPIO36, input mode only */
 | 
			
		||||
    GPIO_NUM_37 = 37,   /*!< GPIO37, input mode only */
 | 
			
		||||
    GPIO_NUM_38 = 38,   /*!< GPIO38, input mode only */
 | 
			
		||||
    GPIO_NUM_39 = 39,   /*!< GPIO39, input mode only */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
							
								
								
									
										44
									
								
								components/soc/esp32c2/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								components/soc/esp32c2/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 *
 | 
			
		||||
 * SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief GPIO number
 | 
			
		||||
 */
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,   /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
							
								
								
									
										46
									
								
								components/soc/esp32c3/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								components/soc/esp32c3/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,46 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 *
 | 
			
		||||
 * SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief GPIO number
 | 
			
		||||
 */
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
							
								
								
									
										54
									
								
								components/soc/esp32c6/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								components/soc/esp32c6/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,54 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 *
 | 
			
		||||
 * SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief GPIO number
 | 
			
		||||
 */
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_22 = 22,   /*!< GPIO22, input and output */
 | 
			
		||||
    GPIO_NUM_23 = 23,   /*!< GPIO23, input and output */
 | 
			
		||||
    GPIO_NUM_24 = 24,   /*!< GPIO24, input and output */
 | 
			
		||||
    GPIO_NUM_25 = 25,   /*!< GPIO25, input and output */
 | 
			
		||||
    GPIO_NUM_26 = 26,   /*!< GPIO26, input and output */
 | 
			
		||||
    GPIO_NUM_27 = 27,   /*!< GPIO27, input and output */
 | 
			
		||||
    GPIO_NUM_28 = 28,   /*!< GPIO28, input and output */
 | 
			
		||||
    GPIO_NUM_29 = 29,   /*!< GPIO29, input and output */
 | 
			
		||||
    GPIO_NUM_30 = 30,   /*!< GPIO30, input and output */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
							
								
								
									
										51
									
								
								components/soc/esp32h2/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								components/soc/esp32h2/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,51 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 *
 | 
			
		||||
 * SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief GPIO number
 | 
			
		||||
 */
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,   /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_22 = 22,   /*!< GPIO22, input and output */
 | 
			
		||||
    GPIO_NUM_23 = 23,   /*!< GPIO23, input and output */
 | 
			
		||||
    GPIO_NUM_24 = 24,   /*!< GPIO24, input and output */
 | 
			
		||||
    GPIO_NUM_25 = 25,   /*!< GPIO25, input and output */
 | 
			
		||||
    GPIO_NUM_26 = 26,   /*!< GPIO26, input and output */
 | 
			
		||||
    GPIO_NUM_27 = 27,   /*!< GPIO27, input and output */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
							
								
								
									
										21
									
								
								components/soc/esp32p4/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								components/soc/esp32p4/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 *
 | 
			
		||||
 * SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// TODO: IDF-6509
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
							
								
								
									
										66
									
								
								components/soc/esp32s2/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								components/soc/esp32s2/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,66 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 *
 | 
			
		||||
 * SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief GPIO number
 | 
			
		||||
 */
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_26 = 26,   /*!< GPIO26, input and output */
 | 
			
		||||
    GPIO_NUM_27 = 27,   /*!< GPIO27, input and output */
 | 
			
		||||
    GPIO_NUM_28 = 28,   /*!< GPIO28, input and output */
 | 
			
		||||
    GPIO_NUM_29 = 29,   /*!< GPIO29, input and output */
 | 
			
		||||
    GPIO_NUM_30 = 30,   /*!< GPIO30, input and output */
 | 
			
		||||
    GPIO_NUM_31 = 31,   /*!< GPIO31, input and output */
 | 
			
		||||
    GPIO_NUM_32 = 32,   /*!< GPIO32, input and output */
 | 
			
		||||
    GPIO_NUM_33 = 33,   /*!< GPIO33, input and output */
 | 
			
		||||
    GPIO_NUM_34 = 34,   /*!< GPIO34, input and output */
 | 
			
		||||
    GPIO_NUM_35 = 35,   /*!< GPIO35, input and output */
 | 
			
		||||
    GPIO_NUM_36 = 36,   /*!< GPIO36, input and output */
 | 
			
		||||
    GPIO_NUM_37 = 37,   /*!< GPIO37, input and output */
 | 
			
		||||
    GPIO_NUM_38 = 38,   /*!< GPIO38, input and output */
 | 
			
		||||
    GPIO_NUM_39 = 39,   /*!< GPIO39, input and output */
 | 
			
		||||
    GPIO_NUM_40 = 40,   /*!< GPIO40, input and output */
 | 
			
		||||
    GPIO_NUM_41 = 41,   /*!< GPIO41, input and output */
 | 
			
		||||
    GPIO_NUM_42 = 42,   /*!< GPIO42, input and output */
 | 
			
		||||
    GPIO_NUM_43 = 43,   /*!< GPIO43, input and output */
 | 
			
		||||
    GPIO_NUM_44 = 44,   /*!< GPIO44, input and output */
 | 
			
		||||
    GPIO_NUM_45 = 45,   /*!< GPIO45, input and output */
 | 
			
		||||
    GPIO_NUM_46 = 46,   /*!< GPIO46, input mode only */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
							
								
								
									
										68
									
								
								components/soc/esp32s3/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										68
									
								
								components/soc/esp32s3/include/soc/gpio_num.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,68 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 *
 | 
			
		||||
 * SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief GPIO number
 | 
			
		||||
 */
 | 
			
		||||
typedef enum {
 | 
			
		||||
    GPIO_NUM_NC = -1,    /*!< Use to signal not connected to S/W */
 | 
			
		||||
    GPIO_NUM_0 = 0,     /*!< GPIO0, input and output */
 | 
			
		||||
    GPIO_NUM_1 = 1,     /*!< GPIO1, input and output */
 | 
			
		||||
    GPIO_NUM_2 = 2,     /*!< GPIO2, input and output */
 | 
			
		||||
    GPIO_NUM_3 = 3,     /*!< GPIO3, input and output */
 | 
			
		||||
    GPIO_NUM_4 = 4,     /*!< GPIO4, input and output */
 | 
			
		||||
    GPIO_NUM_5 = 5,     /*!< GPIO5, input and output */
 | 
			
		||||
    GPIO_NUM_6 = 6,     /*!< GPIO6, input and output */
 | 
			
		||||
    GPIO_NUM_7 = 7,     /*!< GPIO7, input and output */
 | 
			
		||||
    GPIO_NUM_8 = 8,     /*!< GPIO8, input and output */
 | 
			
		||||
    GPIO_NUM_9 = 9,     /*!< GPIO9, input and output */
 | 
			
		||||
    GPIO_NUM_10 = 10,   /*!< GPIO10, input and output */
 | 
			
		||||
    GPIO_NUM_11 = 11,   /*!< GPIO11, input and output */
 | 
			
		||||
    GPIO_NUM_12 = 12,   /*!< GPIO12, input and output */
 | 
			
		||||
    GPIO_NUM_13 = 13,   /*!< GPIO13, input and output */
 | 
			
		||||
    GPIO_NUM_14 = 14,   /*!< GPIO14, input and output */
 | 
			
		||||
    GPIO_NUM_15 = 15,   /*!< GPIO15, input and output */
 | 
			
		||||
    GPIO_NUM_16 = 16,   /*!< GPIO16, input and output */
 | 
			
		||||
    GPIO_NUM_17 = 17,   /*!< GPIO17, input and output */
 | 
			
		||||
    GPIO_NUM_18 = 18,   /*!< GPIO18, input and output */
 | 
			
		||||
    GPIO_NUM_19 = 19,   /*!< GPIO19, input and output */
 | 
			
		||||
    GPIO_NUM_20 = 20,   /*!< GPIO20, input and output */
 | 
			
		||||
    GPIO_NUM_21 = 21,   /*!< GPIO21, input and output */
 | 
			
		||||
    GPIO_NUM_26 = 26,   /*!< GPIO26, input and output */
 | 
			
		||||
    GPIO_NUM_27 = 27,   /*!< GPIO27, input and output */
 | 
			
		||||
    GPIO_NUM_28 = 28,   /*!< GPIO28, input and output */
 | 
			
		||||
    GPIO_NUM_29 = 29,   /*!< GPIO29, input and output */
 | 
			
		||||
    GPIO_NUM_30 = 30,   /*!< GPIO30, input and output */
 | 
			
		||||
    GPIO_NUM_31 = 31,   /*!< GPIO31, input and output */
 | 
			
		||||
    GPIO_NUM_32 = 32,   /*!< GPIO32, input and output */
 | 
			
		||||
    GPIO_NUM_33 = 33,   /*!< GPIO33, input and output */
 | 
			
		||||
    GPIO_NUM_34 = 34,   /*!< GPIO34, input and output */
 | 
			
		||||
    GPIO_NUM_35 = 35,   /*!< GPIO35, input and output */
 | 
			
		||||
    GPIO_NUM_36 = 36,   /*!< GPIO36, input and output */
 | 
			
		||||
    GPIO_NUM_37 = 37,   /*!< GPIO37, input and output */
 | 
			
		||||
    GPIO_NUM_38 = 38,   /*!< GPIO38, input and output */
 | 
			
		||||
    GPIO_NUM_39 = 39,   /*!< GPIO39, input and output */
 | 
			
		||||
    GPIO_NUM_40 = 40,   /*!< GPIO40, input and output */
 | 
			
		||||
    GPIO_NUM_41 = 41,   /*!< GPIO41, input and output */
 | 
			
		||||
    GPIO_NUM_42 = 42,   /*!< GPIO42, input and output */
 | 
			
		||||
    GPIO_NUM_43 = 43,   /*!< GPIO43, input and output */
 | 
			
		||||
    GPIO_NUM_44 = 44,   /*!< GPIO44, input and output */
 | 
			
		||||
    GPIO_NUM_45 = 45,   /*!< GPIO45, input and output */
 | 
			
		||||
    GPIO_NUM_46 = 46,   /*!< GPIO46, input and output */
 | 
			
		||||
    GPIO_NUM_47 = 47,   /*!< GPIO47, input and output */
 | 
			
		||||
    GPIO_NUM_48 = 48,   /*!< GPIO48, input and output */
 | 
			
		||||
    GPIO_NUM_MAX,
 | 
			
		||||
} gpio_num_t;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
@@ -257,6 +257,7 @@ INPUT = \
 | 
			
		||||
    $(PROJECT_PATH)/components/sdmmc/include/sdmmc_cmd.h \
 | 
			
		||||
    $(PROJECT_PATH)/components/soc/$(IDF_TARGET)/include/soc/adc_channel.h \
 | 
			
		||||
    $(PROJECT_PATH)/components/soc/$(IDF_TARGET)/include/soc/clk_tree_defs.h \
 | 
			
		||||
    $(PROJECT_PATH)/components/soc/$(IDF_TARGET)/include/soc/gpio_num.h \
 | 
			
		||||
    $(PROJECT_PATH)/components/soc/$(IDF_TARGET)/include/soc/soc_caps.h \
 | 
			
		||||
    $(PROJECT_PATH)/components/soc/$(IDF_TARGET)/include/soc/uart_channel.h \
 | 
			
		||||
    $(PROJECT_PATH)/components/spi_flash/include/esp_flash_spi_init.h \
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,7 @@ from string import Template
 | 
			
		||||
# The following header files in soc component is treated as stable, so is allowed to be used in any public header files
 | 
			
		||||
allowed_soc_headers = (
 | 
			
		||||
    'soc/soc_caps.h',
 | 
			
		||||
    'soc/gpio_num.h',
 | 
			
		||||
    'soc/reset_reasons.h',
 | 
			
		||||
    'soc/reg_base.h',
 | 
			
		||||
    'soc/clk_tree_defs.h',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user