/* Initializes peripherals used by the I2C Humidity Sensor driver.  */
uint32_t BSP_HSENSOR_Init(void)
/* Initializes peripherals used by the I2C Humidity Sensor driver.  */
uint32_t BSP_HSENSOR_Init(void)
{
  uint32_t ret;
  if(HTS221_H_Drv.ReadID(HTS221_I2C_ADDRESS) != HTS221_WHO_AM_I_VAL)
  {
    ret = HSENSOR_ERROR;
  }
  else
  {
    Hsensor_drv = &HTS221_H_Drv;   
    Hsensor_drv->Init(HTS221_I2C_ADDRESS);
    ret = HSENSOR_OK;
  }
  return ret;
}