gpio/libgpio/mmapGpio.c
static int hasmap(int gpio)
{
  if( (gpio < 0) || (gpio >= arraysize(GpioAddrTbl)) )
  {
    return 0;
  }
  else if( (GpioAddrTbl[gpio].channel == 0) && (GpioAddrTbl[gpio].bit == 0) )
  {
    return 0;
  }
  else
  {
    return 1;
  }
}
/*!
 * \brief Test if exported gpio number has a known mapped memory area.
 *
 * \param gpio  Exported GPIO number.
 *
 * \return Returns 1 if has map, 0 otherwise.
 */
\brief Test if exported gpio number has a known mapped memory area.
\param gpio  Exported GPIO number.

\return Returns 1 if has map, 0 otherwise.
\ brief Test if exported gpio number has a known mapped memory area . \ param gpio Exported GPIO number . \ return Returns 1 if has map 0 otherwise .
static int hasmap(int gpio)
{
  if( (gpio < 0) || (gpio >= arraysize(GpioAddrTbl)) )
  {
    return 0;
  }
  else if( (GpioAddrTbl[gpio].channel == 0) && (GpioAddrTbl[gpio].bit == 0) )
  {
    return 0;
  }
  else
  {
    return 1;
  }
}
static int hasmap ( int gpio ) { if ( ( gpio < 0 ) || ( gpio >= arraysize ( GpioAddrTbl ) ) ) { return 0 ; } else if ( ( GpioAddrTbl [ gpio ] . channel == 0 ) && ( GpioAddrTbl [ gpio ] . bit == 0 ) ) { return 0 ; } else { return 1 ; } }
\brief Test if exported gpio number has a known mapped memory area.
\ brief Test if exported gpio number has a known mapped memory area .