Home
last modified time | relevance | path

Searched refs:led_dev (Results 1 – 5 of 5) sorted by relevance

/Zephyr-Core-3.4.0/samples/drivers/led_pca9633/src/
Dmain.c27 const struct device *const led_dev = DEVICE_DT_GET_ANY(nxp_pca9633); in main() local
30 if (!led_dev) { in main()
33 } else if (!device_is_ready(led_dev)) { in main()
34 LOG_ERR("LED device %s is not ready", led_dev->name); in main()
37 LOG_INF("Found LED device %s", led_dev->name); in main()
45 ret = led_on(led_dev, i); in main()
55 ret = led_off(led_dev, i); in main()
65 ret = led_set_brightness(led_dev, i, HALF_BRIGHTNESS); in main()
75 ret = led_off(led_dev, i); in main()
85 ret = led_blink(led_dev, i, BLINK_DELAY_ON, in main()
[all …]
/Zephyr-Core-3.4.0/samples/drivers/led_lp3943/src/
Dmain.c23 const struct device *const led_dev = DEVICE_DT_GET_ANY(ti_lp3943); in main() local
26 if (!led_dev) { in main()
29 } else if (!device_is_ready(led_dev)) { in main()
30 LOG_ERR("LED device %s not ready", led_dev->name); in main()
33 LOG_INF("Found LED device %s", led_dev->name); in main()
46 ret = led_on(led_dev, i); in main()
56 ret = led_off(led_dev, i); in main()
/Zephyr-Core-3.4.0/samples/subsys/modbus/rtu_server/src/
Dmain.c20 static const struct gpio_dt_spec led_dev[] = { variable
28 if (addr >= ARRAY_SIZE(led_dev)) { in coil_rd()
47 if (addr >= ARRAY_SIZE(led_dev)) { in coil_wr()
60 gpio_pin_set(led_dev[addr].port, led_dev[addr].pin, (int)on); in coil_wr()
133 for (int i = 0; i < ARRAY_SIZE(led_dev); i++) { in main()
134 if (!device_is_ready(led_dev[i].port)) { in main()
139 err = gpio_pin_configure_dt(&led_dev[i], GPIO_OUTPUT_INACTIVE); in main()
/Zephyr-Core-3.4.0/samples/subsys/modbus/tcp_server/src/
Dmain.c23 static const struct gpio_dt_spec led_dev[] = { variable
33 for (int i = 0; i < ARRAY_SIZE(led_dev); i++) { in init_leds()
34 if (!device_is_ready(led_dev[i].port)) { in init_leds()
39 err = gpio_pin_configure_dt(&led_dev[i], GPIO_OUTPUT_INACTIVE); in init_leds()
51 if (addr >= ARRAY_SIZE(led_dev)) { in coil_rd()
70 if (addr >= ARRAY_SIZE(led_dev)) { in coil_wr()
82 gpio_pin_set(led_dev[addr].port, led_dev[addr].pin, (int)on); in coil_wr()
/Zephyr-Core-3.4.0/samples/bluetooth/mesh/src/
Dboard.c40 static const struct device *const led_dev = DEVICE_DT_GET(LED0_DEV); variable
63 if (!device_is_ready(led_dev)) { in led_init()
67 err = gpio_pin_configure(led_dev, LED0_PIN, in led_init()
124 gpio_pin_set(led_dev, LED0_PIN, val); in board_led_set()