FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/platform/drivers/mss/mss_gpio/mss_gpio.h
/*-------------------------------------------------------------------------*/
/**
  The MSS_GPIO_get_inputs() function is used to read the current state all GPIO
  ports configured as inputs.
 
  @param gpio
    The gpio parameter specifies the GPIO block that needs to be configured

  @return
    This function returns a 32-bit unsigned integer where each bit represents
    the state of a GPIO input. The least significant bit represents the state of
    GPIO input 0 and the most significant bit the state of GPIO input 31.

  Example:
    Read and assign the current state of the GPIO outputs to a variable.
    @code
      #include "mss_gpio.h"
      int main(void)
      {
        uint32_t gpio_inputs;
        MSS_GPIO_init(GPIO0_LO);
        MSS_GPIO_config_all(GPIO0_LO, MSS_GPIO_INOUT_MODE);
        gpio_inputs = MSS_GPIO_get_inputs(GPIO0_LO);
        return (0u);
      }
    @endcode
 */
The MSS_GPIO_get_inputs() function is used to read the current state all GPIO
ports configured as inputs.
The MSS_GPIO_get_inputs () function is used to read the current state all GPIO ports configured as inputs .
static inline uint32_t
MSS_GPIO_get_inputs( GPIO_TypeDef const * gpio )
{
    return gpio->GPIO_IN;
}
static inline uint32_t MSS_GPIO_get_inputs ( GPIO_TypeDef const * gpio ) { return gpio -> GPIO_IN ; }
The MSS_GPIO_get_inputs() function is used to read the current state all GPIO
ports configured as inputs.
The MSS_GPIO_get_inputs () function is used to read the current state all GPIO ports configured as inputs .