/* * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @file iot_gpio_ex.h * * @brief Declares the extended GPIO interface functions. * * These functions are used for settings GPIO pulls and driver strength. \n * * @since 1.0 * @version 1.0 */ #ifndef IOT_GPIO_EX_H #define IOT_GPIO_EX_H /** * @brief Enumerates GPIO pull-up or pull-down settings. */ typedef enum { /** No pull */ IOT_IO_PULL_NONE, /** Pull-up */ IOT_IO_PULL_UP, /** Pull-down */ IOT_IO_PULL_DOWN, /** Maximum value */ IOT_IO_PULL_MAX, } IotIoPull; /** * @ingroup iot_io * * GPIO pin ID. CNcomment:IO硬件管脚编号。CNend */ typedef enum { IOT_IO_NAME_GPIO_0, /*