2015-12-15 15:05:10 +01:00
|
|
|
############################################################################
|
|
|
|
# drivers/leds/Make.defs
|
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2015-12-15 15:05:10 +01:00
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-12-15 15:05:10 +01:00
|
|
|
#
|
2021-03-04 07:10:42 +01:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2015-12-15 15:05:10 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2015-12-15 15:23:53 +01:00
|
|
|
# Include user LED driver
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_USERLED),y)
|
|
|
|
CSRCS += userled_upper.c
|
|
|
|
ifeq ($(CONFIG_USERLED_LOWER),y)
|
|
|
|
CSRCS += userled_lower.c
|
|
|
|
endif
|
|
|
|
LEDDEPATH = --dep-path leds
|
|
|
|
LEDVPATH = :leds
|
|
|
|
endif
|
|
|
|
|
2017-09-19 00:48:55 +02:00
|
|
|
ifeq ($(CONFIG_LEDS_APA102),y)
|
|
|
|
CSRCS += apa102.c
|
|
|
|
LEDDEPATH = --dep-path leds
|
|
|
|
LEDVPATH = :leds
|
|
|
|
endif
|
|
|
|
|
2018-07-22 23:13:39 +02:00
|
|
|
ifeq ($(CONFIG_LEDS_MAX7219),y)
|
|
|
|
CSRCS += max7219.c
|
|
|
|
LEDDEPATH = --dep-path leds
|
|
|
|
LEDVPATH = :leds
|
|
|
|
endif
|
|
|
|
|
2016-02-22 15:43:32 +01:00
|
|
|
ifeq ($(CONFIG_RGBLED),y)
|
|
|
|
CSRCS += rgbled.c
|
|
|
|
LEDDEPATH = --dep-path leds
|
|
|
|
LEDVPATH = :leds
|
|
|
|
endif
|
|
|
|
|
2022-12-21 17:13:48 +01:00
|
|
|
ifeq ($(CONFIG_LP503X),y)
|
|
|
|
CSRCS += lp503x.c
|
|
|
|
LEDDEPATH = --dep-path leds
|
|
|
|
LEDVPATH = :leds
|
|
|
|
endif
|
|
|
|
|
2015-12-15 15:05:10 +01:00
|
|
|
ifeq ($(CONFIG_PCA9635PW),y)
|
|
|
|
CSRCS += pca9635pw.c
|
|
|
|
LEDDEPATH = --dep-path leds
|
|
|
|
LEDVPATH = :leds
|
|
|
|
endif
|
2016-06-15 00:09:30 +02:00
|
|
|
ifeq ($(CONFIG_NCP5623C),y)
|
|
|
|
CSRCS += ncp5623c.c
|
|
|
|
LEDDEPATH = --dep-path leds
|
|
|
|
LEDVPATH = :leds
|
|
|
|
endif
|
2015-12-15 15:05:10 +01:00
|
|
|
|
2020-09-14 22:41:49 +02:00
|
|
|
ifeq ($(CONFIG_WS2812),y)
|
|
|
|
CSRCS += ws2812.c
|
|
|
|
LEDDEPATH = --dep-path leds
|
|
|
|
LEDVPATH = :leds
|
|
|
|
endif
|
|
|
|
|
2015-12-15 15:05:10 +01:00
|
|
|
# Include LED build support (if any LED drivers were selected)
|
|
|
|
|
|
|
|
DEPPATH += $(LEDDEPATH)
|
|
|
|
VPATH += $(LEDVPATH)
|