2021-11-05 05:23:24 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2020-06-18 05:13:19 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// ESP32-S3 has 1 GPIO peripheral
|
2021-11-05 05:23:24 -04:00
|
|
|
#define SOC_GPIO_PORT (1U)
|
2021-06-09 05:18:39 -04:00
|
|
|
#define SOC_GPIO_PIN_COUNT (49)
|
2020-06-18 05:13:19 -04:00
|
|
|
|
|
|
|
// On ESP32-S3, Digital IOs have their own registers to control pullup/down/capability, independent with RTC registers.
|
2020-09-09 22:37:58 -04:00
|
|
|
#define SOC_GPIO_SUPPORT_RTC_INDEPENDENT (1)
|
2020-06-18 05:13:19 -04:00
|
|
|
// Force hold is a new function of ESP32-S3
|
2020-09-09 22:37:58 -04:00
|
|
|
#define SOC_GPIO_SUPPORT_FORCE_HOLD (1)
|
2020-06-18 05:13:19 -04:00
|
|
|
|
2021-06-09 05:18:39 -04:00
|
|
|
// 0~48 except from 22~25 are valid
|
|
|
|
#define SOC_GPIO_VALID_GPIO_MASK (0x1FFFFFFFFFFFFULL & ~(0ULL | BIT22 | BIT23 | BIT24 | BIT25))
|
|
|
|
// No GPIO is input only
|
|
|
|
#define SOC_GPIO_VALID_OUTPUT_GPIO_MASK (SOC_GPIO_VALID_GPIO_MASK)
|
2020-06-18 05:13:19 -04:00
|
|
|
|
2021-04-09 04:37:30 -04:00
|
|
|
// Support to configure slept status
|
|
|
|
#define SOC_GPIO_SUPPORT_SLP_SWITCH (1)
|
2020-07-31 06:26:07 -04:00
|
|
|
|
2020-06-18 05:13:19 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|