Home
last modified time | relevance | path

Searched refs:lcfg (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/firmware/os/drivers/leds/
Dleds_gpio.c113 struct LedsCfg *lcfg = (struct LedsCfg *)cfgData; in sensorConfigLedsGpio() local
115 if (lcfg->led_num >= mTask.num) { in sensorConfigLedsGpio()
116 osLog(LOG_INFO, "Wrong led number %"PRIu32"\n", lcfg->led_num); in sensorConfigLedsGpio()
119 mTask.leds[lcfg->led_num].val = lcfg->value ? 1 : 0; in sensorConfigLedsGpio()
120 gpioSet(mTask.leds[lcfg->led_num].ledid, mTask.leds[lcfg->led_num].val); in sensorConfigLedsGpio()
122 osLog(LOG_INFO, "Set led[%"PRIu32"]=%"PRIu32"\n", lcfg->led_num, lcfg->value); in sensorConfigLedsGpio()
Dleds_lp3943.c218 struct LedsCfg *lcfg = (struct LedsCfg *)cfg; in sensorCfgDataLedsLP3943() local
224 if (lcfg->led_num >= mTask.num) { in sensorCfgDataLedsLP3943()
225 osLog(LOG_INFO, "Wrong led number %"PRIu32"\n", lcfg->led_num); in sensorCfgDataLedsLP3943()
228 index = lcfg->led_num >> 2; in sensorCfgDataLedsLP3943()
229 lnum = (lcfg->led_num & 0x3) << 1; in sensorCfgDataLedsLP3943()
232 if (lcfg->value) { in sensorCfgDataLedsLP3943()
240 osLog(LOG_INFO, "Set led[%"PRIu32"]=%"PRIu32"\n", lcfg->led_num, lcfg->value); in sensorCfgDataLedsLP3943()