/* Initializes and configures the Ambiant light Sensor and configures all necessary hardware resources (GPIOs, I2C, clocks..).  */
int32_t BSP_LIGHT_SENSOR_Init(uint32_t Instance)
/* Initializes and configures the Ambiant light Sensor and configures all necessary hardware resources (GPIOs, I2C, clocks..).  */
int32_t BSP_LIGHT_SENSOR_Init(uint32_t Instance)
{
  int32_t status = BSP_ERROR_NONE;
  if (Instance >= LIGHT_SENSOR_INSTANCES_NBR)
  {
    status = BSP_ERROR_WRONG_PARAM;
  }
  else
  {
    if(VEML6030_Probe(Instance)!= BSP_ERROR_NONE)
    {
      status = BSP_ERROR_COMPONENT_FAILURE;
    }
    else
    {
      LIGHT_SENSOR_Ctx[Instance].Gain = VEML6030_CONF_GAIN_1 ;
      LIGHT_SENSOR_Ctx[Instance].ExposureTime = VEML6030_CONF_IT100;
    }
  }
  return status;
}