Lines Matching refs:led_pwm
33 static void run_led_test(const struct device *led_pwm, uint8_t led) in run_led_test() argument
41 err = led_on(led_pwm, led); in run_led_test()
50 err = led_off(led_pwm, led); in run_led_test()
61 err = led_set_brightness(led_pwm, led, level); in run_led_test()
73 err = led_set_brightness(led_pwm, led, level); in run_led_test()
84 err = led_blink(led_pwm, led, CONFIG_BLINK_DELAY_SHORT, CONFIG_BLINK_DELAY_SHORT); in run_led_test()
97 err = led_blink(led_pwm, led, CONFIG_BLINK_DELAY_LONG, CONFIG_BLINK_DELAY_LONG); in run_led_test()
112 err = led_off(led_pwm, led); in run_led_test()
122 const struct device *led_pwm; in main() local
125 led_pwm = DEVICE_DT_GET(LED_PWM_NODE_ID); in main()
126 if (!device_is_ready(led_pwm)) { in main()
127 LOG_ERR("Device %s is not ready", led_pwm->name); in main()
132 LOG_ERR("No LEDs found for %s", led_pwm->name); in main()
138 run_led_test(led_pwm, led); in main()