Home
last modified time | relevance | path

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

/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/src/
Dmain.c259 const struct gpio_dt_spec led1_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(led1), gpios); in led_pattern_out() local
270 if (!gpio_is_ready_dt(&led1_gpio)) { in led_pattern_out()
271 printk("%s: device not ready.\n", led1_gpio.port->name); in led_pattern_out()
274 gpio_pin_configure_dt(&led1_gpio, GPIO_OUTPUT_INACTIVE); in led_pattern_out()
279 gpio_pin_set_dt(&led1_gpio, ((i % 2) == 1) ? 1 : 0); in led_pattern_out()
286 gpio_pin_set_dt(&led1_gpio, ((i % 2) == 0) ? 1 : 0); in led_pattern_out()
292 gpio_pin_set_dt(&led1_gpio, 0); in led_pattern_out()
/Zephyr-latest/samples/boards/st/sensortile_box/src/
Dmain.c253 static const struct gpio_dt_spec led1_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(led1), gpios); in main() local
275 if (!gpio_is_ready_dt(&led1_gpio)) { in main()
276 printk("%s: device not ready.\n", led1_gpio.port->name); in main()
279 gpio_pin_configure_dt(&led1_gpio, GPIO_OUTPUT_INACTIVE); in main()
283 gpio_pin_set_dt(&led1_gpio, !on); in main()
289 gpio_pin_set_dt(&led1_gpio, 1); in main()
/Zephyr-latest/samples/boards/st/sensortile_box_pro/sensors-on-board/src/
Dmain.c240 const struct gpio_dt_spec led1_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(led1), gpios); in led_pattern_out() local
253 if (!gpio_is_ready_dt(&led1_gpio)) { in led_pattern_out()
254 printk("%s: device not ready.\n", led1_gpio.port->name); in led_pattern_out()
257 gpio_pin_configure_dt(&led1_gpio, GPIO_OUTPUT_INACTIVE); in led_pattern_out()
276 gpio_pin_set_dt(&led1_gpio, ((i % 4) == 1) ? 1 : 0); in led_pattern_out()
284 gpio_pin_set_dt(&led1_gpio, 0); in led_pattern_out()
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/src/
Dmain.c115 static const struct gpio_dt_spec led1_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(led1), gpios); in main() local
143 if (!gpio_is_ready_dt(&led1_gpio)) { in main()
144 printk("%s: device not ready.\n", led1_gpio.port->name); in main()
147 gpio_pin_configure_dt(&led1_gpio, GPIO_OUTPUT_INACTIVE); in main()
150 gpio_pin_set_dt(&led1_gpio, on); in main()