Searched refs:gled (Results 1 – 1 of 1) sorted by relevance
38 rt_pin_write(gled->pin, !gled->active_val); in gpio_led_set_state()42 rt_pin_write(gled->pin, gled->active_val); in gpio_led_set_state()65 switch (rt_pin_read(gled->pin)) in gpio_led_get_state()93 struct gpio_led *gled = rt_malloc(sizeof(*gled)); in ofw_append_gpio_led() local95 if (!gled) in ofw_append_gpio_led()100 gled->pin = rt_ofw_get_named_pin(np, RT_NULL, 0, RT_NULL, &gled->active_val); in ofw_append_gpio_led()102 if (gled->pin < 0) in ofw_append_gpio_led()104 err = gled->pin; in ofw_append_gpio_led()143 rt_free(gled); in ofw_append_gpio_led()189 struct gpio_led *gled; in gpio_led_remove() local[all …]
Completed in 4 milliseconds