/* Initializes peripherals used by the I2C Pressure Sensor driver.  */
uint32_t BSP_PSENSOR_Init(void)
/* Initializes peripherals used by the I2C Pressure Sensor driver.  */
uint32_t BSP_PSENSOR_Init(void)
{
  uint32_t ret;
  if(LPS22HB_P_Drv.ReadID(LPS22HB_I2C_ADDRESS) != LPS22HB_WHO_AM_I_VAL)
  {
    ret = PSENSOR_ERROR;
  }
  else
  {
     Psensor_drv = &LPS22HB_P_Drv;   
    Psensor_drv->Init(LPS22HB_I2C_ADDRESS);
    ret = PSENSOR_OK;
  }
  return ret;
}