Home
last modified time | relevance | path

Searched refs:toggle_gpio (Results 1 – 2 of 2) sorted by relevance

/u-boot/board/ti/beagle/
A Dled.c45 int toggle_gpio; in __led_init() local
47 toggle_gpio = get_led_gpio(mask); in __led_init()
49 if (toggle_gpio && !gpio_request(toggle_gpio, "led")) in __led_init()
55 int state, toggle_gpio; in __led_toggle() local
57 toggle_gpio = get_led_gpio(mask); in __led_toggle()
58 if (toggle_gpio) { in __led_toggle()
59 state = gpio_get_value(toggle_gpio); in __led_toggle()
66 int toggle_gpio; in __led_set() local
68 toggle_gpio = get_led_gpio(mask); in __led_set()
69 if (toggle_gpio) in __led_set()
[all …]
/u-boot/board/corscience/tricorder/
A Dled.c24 int toggle_gpio = 0; in __led_toggle() local
26 if (!toggle_gpio && CONFIG_LED_STATUS_BIT & mask) in __led_toggle()
27 toggle_gpio = TRICORDER_STATUS_LED_GREEN; in __led_toggle()
30 if (!toggle_gpio && CONFIG_LED_STATUS_BIT1 & mask) in __led_toggle()
31 toggle_gpio = TRICORDER_STATUS_LED_YELLOW; in __led_toggle()
34 if (!toggle_gpio && CONFIG_LED_STATUS_BIT2 & mask) { in __led_toggle()
43 if (toggle_gpio) { in __led_toggle()
45 gpio_request(toggle_gpio, ""); in __led_toggle()
46 state = gpio_get_value(toggle_gpio); in __led_toggle()
47 gpio_set_value(toggle_gpio, !state); in __led_toggle()

Completed in 19 milliseconds