/* Initialize the stmpe1600 and configure the needed hardware resources.  */
void stmpe1600_Init(uint16_t DeviceAddr)
/* Initialize the stmpe1600 and configure the needed hardware resources.  */
void stmpe1600_Init(uint16_t DeviceAddr)
{
  uint8_t instance;
  uint8_t empty;
  instance = stmpe1600_GetInstance(DeviceAddr);
  if(instance == 0xFF)
  {
    empty = stmpe1600_GetInstance(0);
    if(empty < STMPE1600_MAX_INSTANCE)
    {
      stmpe1600[empty] = DeviceAddr;
      IOE_Init();
      stmpe1600_Reset(DeviceAddr);
    }
  } 
}