OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:lcfg
(Results
1 - 2
of
2
) sorted by null
/device/google/contexthub/firmware/os/drivers/leds/
leds_gpio.c
113
struct LedsCfg *
lcfg
= (struct LedsCfg *)cfgData;
local
115
if (
lcfg
->led_num >= mTask.num) {
116
osLog(LOG_INFO, "Wrong led number %"PRIu32"\n",
lcfg
->led_num);
119
mTask.leds[
lcfg
->led_num].val =
lcfg
->value ? 1 : 0;
120
gpioSet(mTask.leds[
lcfg
->led_num].ledid, mTask.leds[
lcfg
->led_num].val);
122
osLog(LOG_INFO, "Set led[%"PRIu32"]=%"PRIu32"\n",
lcfg
->led_num,
lcfg
->value);
leds_lp3943.c
218
struct LedsCfg *
lcfg
= (struct LedsCfg *)cfg;
local
224
if (
lcfg
->led_num >= mTask.num) {
225
osLog(LOG_INFO, "Wrong led number %"PRIu32"\n",
lcfg
->led_num);
228
index =
lcfg
->led_num >> 2;
229
lnum = (
lcfg
->led_num & 0x3) << 1;
232
if (
lcfg
->value) {
240
osLog(LOG_INFO, "Set led[%"PRIu32"]=%"PRIu32"\n",
lcfg
->led_num,
lcfg
->value);
Completed in 51 milliseconds