2013-04-16 08:48:42 -06:00
|
|
|
############################################################################
|
2019-08-13 16:08:49 +00:00
|
|
|
# boards/arm/kl/freedom-kl25z/src/Makefile
|
2013-04-16 08:48:42 -06:00
|
|
|
#
|
2021-03-05 10:18:57 +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
|
2013-04-16 08:48:42 -06:00
|
|
|
#
|
2021-03-05 10:18:57 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2013-04-16 08:48:42 -06:00
|
|
|
#
|
2021-03-05 10:18:57 +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.
|
2013-04-16 08:48:42 -06:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2020-05-19 03:42:11 +08:00
|
|
|
include $(TOPDIR)/Make.defs
|
2013-04-16 08:48:42 -06:00
|
|
|
|
2013-10-24 13:59:53 -06:00
|
|
|
CSRCS = kl_boardinitialize.c
|
|
|
|
|
2015-04-09 14:48:54 -06:00
|
|
|
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
|
|
|
CSRCS += kl_appinit.c
|
2014-11-19 07:17:46 -06:00
|
|
|
endif
|
|
|
|
|
2013-06-18 11:20:57 -06:00
|
|
|
ifeq ($(CONFIG_KL_TSI),y)
|
|
|
|
CSRCS += kl_tsi.c
|
|
|
|
endif
|
|
|
|
|
2014-12-18 07:27:49 -06:00
|
|
|
ifeq ($(CONFIG_KL_SPI0),y)
|
2013-06-20 13:50:16 -06:00
|
|
|
CSRCS += kl_spi.c
|
2014-12-18 07:27:49 -06:00
|
|
|
else
|
|
|
|
ifeq ($(CONFIG_KL_SPI1),y)
|
|
|
|
CSRCS += kl_spi.c
|
|
|
|
endif
|
2013-06-20 13:50:16 -06:00
|
|
|
endif
|
|
|
|
|
2013-04-16 08:48:42 -06:00
|
|
|
ifeq ($(CONFIG_ARCH_LEDS),y)
|
|
|
|
CSRCS += kl_led.c
|
|
|
|
endif
|
|
|
|
|
2013-06-20 13:50:16 -06:00
|
|
|
ifeq ($(CONFIG_KL_USBOTG),y)
|
|
|
|
CSRCS += kl_usb.c
|
2013-04-16 08:48:42 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PWM),y)
|
2014-12-16 07:48:22 -06:00
|
|
|
CSRCS += kl_pwm.c
|
2013-04-16 08:48:42 -06:00
|
|
|
endif
|
|
|
|
|
2017-08-24 10:26:53 -06:00
|
|
|
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
2013-04-16 08:48:42 -06:00
|
|
|
CSRCS += kl_qencoder.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_WATCHDOG),y)
|
|
|
|
CSRCS += kl_watchdog.c
|
|
|
|
endif
|
|
|
|
|
2014-12-16 08:16:53 -06:00
|
|
|
ifeq ($(CONFIG_SENSORS_ADXL345),y)
|
2014-12-16 07:48:22 -06:00
|
|
|
CSRCS += kl_adxl345.c
|
|
|
|
endif
|
|
|
|
|
2019-08-05 12:04:14 +00:00
|
|
|
include $(TOPDIR)/boards/Board.mk
|