b15f01ddce
Implement a LED driver for Microchip XEC using the breathing, blinking LED controller. The driver supports LED on, off, and blink API's. The BBLED block uses the 32768 Hz clock domain allowing the module to operate in light and deep sleep states. Blink frequency is 32768 divided by 256 * (prescale + 1) where prescale is a 12-bit value. Duty cycle is specified by an 8-bit value where 0 = full off, 127 is 50%, and 255 is full on. Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
40 lines
865 B
Plaintext
40 lines
865 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.gpio"
|
|
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"
|
|
source "drivers/led/Kconfig.tlc59108"
|
|
source "drivers/led/Kconfig.xec"
|
|
|
|
endif # LED
|