/* Initialize the stmpe811 and configure the needed hardware resources.  */
void stmpe811_Init(uint16_t DeviceAddr)
/* Initialize the stmpe811 and configure the needed hardware resources.  */
void stmpe811_Init(uint16_t DeviceAddr)
{
  uint8_t instance;
  uint8_t empty;
  instance = stmpe811_GetInstance(DeviceAddr);
  if(instance == 0xFF)
  {
    empty = stmpe811_GetInstance(0);
    if(empty < STMPE811_MAX_INSTANCE)
    {
      stmpe811[empty] = DeviceAddr;
      IOE_Init();
      stmpe811_Reset(DeviceAddr);
    }
  }
}