1 /* 2 * Copyright (c) 2017 Christian Taedcke 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6 /** @file 7 * @brief Silabs EXX32 MCU family General Purpose Input Output (GPIO) 8 * module HAL driver. 9 */ 10 11 #ifndef _SILABS_EXX32_SOC_GPIO_H_ 12 #define _SILABS_EXX32_SOC_GPIO_H_ 13 14 #include <soc.h> 15 #include <em_gpio.h> 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 struct soc_gpio_pin { 22 GPIO_Port_TypeDef port; /** GPIO port */ 23 unsigned int pin; /** GPIO pin on the port */ 24 GPIO_Mode_TypeDef mode; /** mode of the pin, e.g. gpioModeInput */ 25 unsigned int out; /** out register value */ 26 }; 27 28 #ifdef __cplusplus 29 } 30 #endif 31 32 #endif /* _SILABS_EXX32_SOC_GPIO_H_ */ 33