FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/platform/drivers/mss/mss_gpio/mss_gpio.h
/*-------------------------------------------------------------------------*/
/**
  The MSS_GPIO_get_outputs() function is used to read the current state of all
  GPIO ports configured as outputs.
 
  @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 output. The least significant bit represents the state
     of GPIO output 0 and the most significant bit the state of GPIO output 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_outputs;
         MSS_GPIO_init(GPIO0_LO);
         MSS_GPIO_config(GPIO0_LO, MSS_GPIO_4, MSS_GPIO_INPUT_MODE |
                          MSS_GPIO_IRQ_EDGE_POSITIVE );

         gpio_outputs = MSS_GPIO_get_outputs();
         gpio_outputs &= ~( MSS_GPIO_2_MASK | MSS_GPIO_4_MASK );
         MSS_GPIO_set_outputs(  gpio_outputs );

         return (0u);
      }
    @endcode
 */
The MSS_GPIO_get_outputs() function is used to read the current state of all
GPIO ports configured as outputs.
The MSS_GPIO_get_outputs () function is used to read the current state of all GPIO ports configured as outputs .
static inline uint32_t
MSS_GPIO_get_outputs( GPIO_TypeDef const * gpio )
{
    return gpio->GPIO_OUT;
}
static inline uint32_t MSS_GPIO_get_outputs ( GPIO_TypeDef const * gpio ) { return gpio -> GPIO_OUT ; }
The MSS_GPIO_get_outputs() function is used to read the current state of all
GPIO ports configured as outputs.
The MSS_GPIO_get_outputs () function is used to read the current state of all GPIO ports configured as outputs .