gpio/libgpio/mmapGpio.c
static void mmapFillLookupTbl()
{
  memset(GpioAddrTbl, 0, sizeof(GpioAddrTbl));

  // GPIO: 18  Pin: 15  Net: XE.INT10
  GpioAddrTbl[18].channel = 0x0c24;
  GpioAddrTbl[18].bit     = 2;

  // GPIO: 19  Pin: 18  Net: XE.INT11
  GpioAddrTbl[19].channel = 0x0c24;
  GpioAddrTbl[19].bit     = 3;

  // GPIO: 21  Pin: 13  Net: XE.INT13
  GpioAddrTbl[21].channel = 0x0c24;
  GpioAddrTbl[21].bit     = 5;

  // GPIO: 22  Pin: 17  Net: XE.INT14
  GpioAddrTbl[22].channel = 0x0c24;
  GpioAddrTbl[22].bit     = 6;

  // GPIO: 24  Pin: 26  Net: XE.INT16
  GpioAddrTbl[24].channel = 0x0c44;
  GpioAddrTbl[24].bit     = 0;

  // GPIO: 25  Pin: 24  Net: XE.INT17
  GpioAddrTbl[25].channel = 0x0c44;
  GpioAddrTbl[25].bit     = 1;

  // GPIO: 28  Pin: 20  Net: XE.INT20
  GpioAddrTbl[28].channel = 0x0c44;
  GpioAddrTbl[28].bit     = 4;

  // GPIO: 29  Pin: 21  Net: XE.INT21
  GpioAddrTbl[29].channel = 0x0c44;
  GpioAddrTbl[29].bit     = 5;

  // GPIO: 30  Pin: 19  Net: XE.INT22
  GpioAddrTbl[30].channel = 0x0c44;
  GpioAddrTbl[30].bit     = 6;

  // GPIO: 31  Pin: 22  Net: XE.INT23
  GpioAddrTbl[31].channel = 0x0c44;
  GpioAddrTbl[31].bit     = 7;
}
/*!
 * \brief Fill device memory address offset and bit lookup table.
 *
 * \todo Need to find mapping for GPIO: 23 171 172 173 ...
 */
\brief Fill device memory address offset and bit lookup table.
\todo Need to find mapping for GPIO: 23 171 172 173
\ brief Fill device memory address offset and bit lookup table . \ todo Need to find mapping for GPIO : 23 171 172 173
static void mmapFillLookupTbl()
{
  memset(GpioAddrTbl, 0, sizeof(GpioAddrTbl));
  GpioAddrTbl[18].channel = 0x0c24;
  GpioAddrTbl[18].bit     = 2;
  GpioAddrTbl[19].channel = 0x0c24;
  GpioAddrTbl[19].bit     = 3;
  GpioAddrTbl[21].channel = 0x0c24;
  GpioAddrTbl[21].bit     = 5;
  GpioAddrTbl[22].channel = 0x0c24;
  GpioAddrTbl[22].bit     = 6;
  GpioAddrTbl[24].channel = 0x0c44;
  GpioAddrTbl[24].bit     = 0;
  GpioAddrTbl[25].channel = 0x0c44;
  GpioAddrTbl[25].bit     = 1;
  GpioAddrTbl[28].channel = 0x0c44;
  GpioAddrTbl[28].bit     = 4;
  GpioAddrTbl[29].channel = 0x0c44;
  GpioAddrTbl[29].bit     = 5;
  GpioAddrTbl[30].channel = 0x0c44;
  GpioAddrTbl[30].bit     = 6;
  GpioAddrTbl[31].channel = 0x0c44;
  GpioAddrTbl[31].bit     = 7;
}
static void mmapFillLookupTbl ( ) { memset ( GpioAddrTbl , 0 , sizeof ( GpioAddrTbl ) ) ; GpioAddrTbl [ 18 ] . channel = 0x0c24 ; GpioAddrTbl [ 18 ] . bit = 2 ; GpioAddrTbl [ 19 ] . channel = 0x0c24 ; GpioAddrTbl [ 19 ] . bit = 3 ; GpioAddrTbl [ 21 ] . channel = 0x0c24 ; GpioAddrTbl [ 21 ] . bit = 5 ; GpioAddrTbl [ 22 ] . channel = 0x0c24 ; GpioAddrTbl [ 22 ] . bit = 6 ; GpioAddrTbl [ 24 ] . channel = 0x0c44 ; GpioAddrTbl [ 24 ] . bit = 0 ; GpioAddrTbl [ 25 ] . channel = 0x0c44 ; GpioAddrTbl [ 25 ] . bit = 1 ; GpioAddrTbl [ 28 ] . channel = 0x0c44 ; GpioAddrTbl [ 28 ] . bit = 4 ; GpioAddrTbl [ 29 ] . channel = 0x0c44 ; GpioAddrTbl [ 29 ] . bit = 5 ; GpioAddrTbl [ 30 ] . channel = 0x0c44 ; GpioAddrTbl [ 30 ] . bit = 6 ; GpioAddrTbl [ 31 ] . channel = 0x0c44 ; GpioAddrTbl [ 31 ] . bit = 7 ; }
\brief Fill device memory address offset and bit lookup table.
\ brief Fill device memory address offset and bit lookup table .
// GPIO: 18  Pin: 15  Net: XE.INT10 // GPIO: 19  Pin: 18  Net: XE.INT11 // GPIO: 21  Pin: 13  Net: XE.INT13 // GPIO: 22  Pin: 17  Net: XE.INT14 // GPIO: 24  Pin: 26  Net: XE.INT16 // GPIO: 25  Pin: 24  Net: XE.INT17 // GPIO: 28  Pin: 20  Net: XE.INT20 // GPIO: 29  Pin: 21  Net: XE.INT21 // GPIO: 30  Pin: 19  Net: XE.INT22 // GPIO: 31  Pin: 22  Net: XE.INT23