fix(gpio): remove GPIO_OUTPUT_SET macro for ESP32P4

Use GPIO_OUTPUT_SET led to compilation error

Closes https://github.com/espressif/esp-idf/issues/16050
This commit is contained in:
Song Ruo Jing
2025-06-11 17:30:23 +08:00
parent 60bef64f5c
commit 3e2945b595
17 changed files with 108 additions and 371 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2010-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2010-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -63,6 +63,7 @@ typedef enum {
*/
void gpio_output_set(uint32_t set_mask, uint32_t clear_mask, uint32_t enable_mask, uint32_t disable_mask);
// gpio_output_set_high does not show in ESP32S3 ROM
/**
* @brief Sample the value of GPIO input pins(0-31) and returns a bitmask.
@@ -73,8 +74,10 @@ void gpio_output_set(uint32_t set_mask, uint32_t clear_mask, uint32_t enable_mas
*/
uint32_t gpio_input_get(void);
// gpio_input_get_high does not show in ESP32S3 ROM
/**
* @brief Set GPIO to wakeup the ESP32.
* @brief Set GPIO to wakeup the chip.
* Please do not call this function in SDK.
*
* @param uint32_t i: gpio number.
@@ -86,7 +89,7 @@ uint32_t gpio_input_get(void);
void gpio_pin_wakeup_enable(uint32_t i, GPIO_INT_TYPE intr_state);
/**
* @brief disable GPIOs to wakeup the ESP32.
* @brief disable GPIOs to wakeup the chip.
* Please do not call this function in SDK.
*
* @param None