mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-05 11:45:59 +00:00
This driver supports the PWM driven LEDs. The devices are created from the DT nodes with a compatible property matching "pwm-leds". For each child node a LED is created and its "pwms" phandle's node is used to retrieve the PWM configuration: channel, period and flags. If some of this properties are missing (it is the case for some PWM controllers), then reasonable default values are used. This driver implements the following LED API methods: - led_on - led_off - led_blink - led_set_brightness Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
37 lines
760 B
Plaintext
37 lines
760 B
Plaintext
# Copyright (c) 2018 Linaro Limited
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Top-level configuration file for LED drivers.
|
|
|
|
menuconfig LED
|
|
bool "LED drivers"
|
|
help
|
|
Include LED drivers in the system configuration.
|
|
|
|
if LED
|
|
|
|
module = LED
|
|
module-str = led
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
config LED_INIT_PRIORITY
|
|
int "LED initialization priority"
|
|
default 90
|
|
help
|
|
System initialization priority for LED drivers.
|
|
|
|
config LED_SHELL
|
|
bool "LED shell"
|
|
depends on SHELL
|
|
help
|
|
Enable LED shell for testing.
|
|
|
|
source "drivers/led/Kconfig.ht16k33"
|
|
source "drivers/led/Kconfig.lp3943"
|
|
source "drivers/led/Kconfig.lp503x"
|
|
source "drivers/led/Kconfig.lp5562"
|
|
source "drivers/led/Kconfig.pca9633"
|
|
source "drivers/led/Kconfig.pwm"
|
|
|
|
endif # LED
|