Home
last modified time | relevance | path

Searched refs:led0_gpio (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/src/
Dmain.c258 const struct gpio_dt_spec led0_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios); in led_pattern_out() local
263 if (!gpio_is_ready_dt(&led0_gpio)) { in led_pattern_out()
264 printk("%s: device not ready.\n", led0_gpio.port->name); in led_pattern_out()
267 gpio_pin_configure_dt(&led0_gpio, GPIO_OUTPUT_INACTIVE); in led_pattern_out()
278 gpio_pin_set_dt(&led0_gpio, ((i % 2) == 0) ? 1 : 0); in led_pattern_out()
285 gpio_pin_set_dt(&led0_gpio, ((i % 2) == 0) ? 1 : 0); in led_pattern_out()
291 gpio_pin_set_dt(&led0_gpio, 0); in led_pattern_out()
/Zephyr-latest/samples/boards/st/sensortile_box/src/
Dmain.c252 static const struct gpio_dt_spec led0_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios); in main() local
269 if (!gpio_is_ready_dt(&led0_gpio)) { in main()
270 printk("%s: device not ready.\n", led0_gpio.port->name); in main()
273 gpio_pin_configure_dt(&led0_gpio, GPIO_OUTPUT_ACTIVE); in main()
282 gpio_pin_set_dt(&led0_gpio, on); in main()
288 gpio_pin_set_dt(&led0_gpio, 0); in main()
/Zephyr-latest/samples/boards/st/sensortile_box_pro/sensors-on-board/src/
Dmain.c239 const struct gpio_dt_spec led0_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios); in led_pattern_out() local
246 if (!gpio_is_ready_dt(&led0_gpio)) { in led_pattern_out()
247 printk("%s: device not ready.\n", led0_gpio.port->name); in led_pattern_out()
250 gpio_pin_configure_dt(&led0_gpio, GPIO_OUTPUT_INACTIVE); in led_pattern_out()
275 gpio_pin_set_dt(&led0_gpio, ((i % 4) == 0) ? 1 : 0); in led_pattern_out()
283 gpio_pin_set_dt(&led0_gpio, 0); in led_pattern_out()
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/src/
Dmain.c114 static const struct gpio_dt_spec led0_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios); in main() local
137 if (!gpio_is_ready_dt(&led0_gpio)) { in main()
138 printk("%s: device not ready.\n", led0_gpio.port->name); in main()
141 gpio_pin_configure_dt(&led0_gpio, GPIO_OUTPUT_ACTIVE); in main()