1 /** 2 * @file gpio.h 3 * @brief General-Purpose Input/Output (GPIO) function prototypes and data types. 4 */ 5 6 /****************************************************************************** 7 * 8 * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by 9 * Analog Devices, Inc.), 10 * Copyright (C) 2023-2024 Analog Devices, Inc. 11 * 12 * Licensed under the Apache License, Version 2.0 (the "License"); 13 * you may not use this file except in compliance with the License. 14 * You may obtain a copy of the License at 15 * 16 * http://www.apache.org/licenses/LICENSE-2.0 17 * 18 * Unless required by applicable law or agreed to in writing, software 19 * distributed under the License is distributed on an "AS IS" BASIS, 20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21 * See the License for the specific language governing permissions and 22 * limitations under the License. 23 * 24 ******************************************************************************/ 25 26 /* Define to prevent redundant inclusion */ 27 #ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_AFE_GPIO_H_ 28 #define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_AFE_GPIO_H_ 29 30 /* **** Includes **** */ 31 #include "gpio_regs.h" 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 /* **** Definitions **** */ 38 39 /* **** Function Prototypes **** */ 40 /** 41 * @brief Configure GPIO pin(s) and used only for internal HART pins. 42 * @param cfg Pointer to configuration structure describing the pin. 43 * @return #E_NO_ERROR if everything is successful. See \ref MXC_Error_Codes for the list of error codes. 44 */ 45 int MXC_AFE_GPIO_Config(const mxc_gpio_cfg_t *cfg); 46 47 #ifdef __cplusplus 48 } 49 #endif 50 51 #endif // LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_AFE_GPIO_H_ 52