feat(dedic_gpio): enable pad input for the input signal

previously, we asked the user to enable the gpio direction before
initialize the dedicated GPIO.

Now the dedicated GPIO driver will help enable the input/output path
according to the in_en and out_en flags.
This commit is contained in:
morris
2024-10-12 16:29:45 +08:00
parent 93de26537c
commit 1c1198cf4a
10 changed files with 89 additions and 173 deletions

View File

@@ -1,11 +1,9 @@
/* GPIO Example
/*
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>