2012-01-11 13:01:26 +00:00
|
|
|
############################################################################
|
|
|
|
# configs/stm32f4discovery/src/Makefile
|
|
|
|
#
|
2016-02-22 09:00:51 -06:00
|
|
|
# Copyright (C) 2011-2013, 2015-2016 Gregory Nutt. All rights reserved.
|
2012-01-11 13:01:26 +00:00
|
|
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in
|
|
|
|
# the documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
|
|
# used to endorse or promote products derived from this software
|
|
|
|
# without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
-include $(TOPDIR)/Make.defs
|
|
|
|
|
2014-04-13 16:22:22 -06:00
|
|
|
ASRCS =
|
2014-09-20 12:55:23 -06:00
|
|
|
CSRCS = stm32_boot.c stm32_bringup.c stm32_spi.c
|
2012-01-11 13:01:26 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_ARCH_LEDS),y)
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_autoleds.c
|
2012-01-11 13:01:26 +00:00
|
|
|
else
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_userleds.c
|
2012-01-11 13:01:26 +00:00
|
|
|
endif
|
|
|
|
|
2017-05-21 14:14:09 -06:00
|
|
|
ifeq ($(CONFIG_AUDIO_CS43L22),y)
|
|
|
|
CSRCS += stm32_cs43l22.c
|
|
|
|
endif
|
|
|
|
|
2012-01-11 13:01:26 +00:00
|
|
|
ifeq ($(CONFIG_ARCH_BUTTONS),y)
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_buttons.c
|
2012-01-11 13:01:26 +00:00
|
|
|
endif
|
|
|
|
|
2016-07-06 17:35:58 +02:00
|
|
|
ifeq ($(CONFIG_CAN),y)
|
|
|
|
CSRCS += stm32_can.c
|
|
|
|
endif
|
|
|
|
|
2012-08-29 17:41:43 +00:00
|
|
|
ifeq ($(CONFIG_STM32_OTGFS),y)
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_usb.c
|
2012-04-02 22:20:39 +00:00
|
|
|
endif
|
|
|
|
|
2017-08-24 09:45:46 -06:00
|
|
|
ifeq ($(CONFIG_SENSORS_BH1750FVI),y)
|
2016-04-15 08:20:33 -06:00
|
|
|
CSRCS += stm32_bh1750fvi.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 09:45:46 -06:00
|
|
|
ifeq ($(CONFIG_SENSORS_BMP180),y)
|
2015-07-20 07:22:01 -06:00
|
|
|
CSRCS += stm32_bmp180.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 10:10:00 -06:00
|
|
|
ifeq ($(CONFIG_SENSORS_MAX31855),y)
|
2015-09-13 15:50:02 -06:00
|
|
|
CSRCS += stm32_max31855.c
|
|
|
|
endif
|
|
|
|
|
2017-08-24 10:10:00 -06:00
|
|
|
ifeq ($(CONFIG_SENSORS_MAX6675),y)
|
2015-10-18 07:54:21 +08:00
|
|
|
CSRCS += stm32_max6675.c
|
|
|
|
endif
|
|
|
|
|
2015-12-15 13:58:28 -06:00
|
|
|
ifeq ($(CONFIG_PCA9635PW),y)
|
|
|
|
CSRCS += stm32_pca9635.c
|
|
|
|
endif
|
|
|
|
|
2014-09-20 12:55:23 -06:00
|
|
|
ifeq ($(CONFIG_STM32_SDIO),y)
|
|
|
|
CSRCS += stm32_sdio.c
|
|
|
|
endif
|
|
|
|
|
2015-09-28 10:58:47 -06:00
|
|
|
ifeq ($(CONFIG_STM32_ETHMAC),y)
|
|
|
|
CSRCS += stm32_ethernet.c
|
|
|
|
endif
|
|
|
|
|
2016-02-22 08:52:24 -06:00
|
|
|
ifeq ($(CONFIG_RGBLED),y)
|
|
|
|
CSRCS += stm32_rgbled.c
|
|
|
|
endif
|
|
|
|
|
2012-01-11 13:01:26 +00:00
|
|
|
ifeq ($(CONFIG_PWM),y)
|
2014-03-01 14:16:34 -06:00
|
|
|
CSRCS += stm32_pwm.c
|
2012-01-11 13:01:26 +00:00
|
|
|
endif
|
|
|
|
|
2017-08-24 10:26:53 -06:00
|
|
|
ifeq ($(CONFIG_SENSORS_QENCODER),y)
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_qencoder.c
|
2012-02-15 17:51:30 +00:00
|
|
|
endif
|
|
|
|
|
2017-08-24 10:26:53 -06:00
|
|
|
ifeq ($(CONFIG_SENSORS_XEN1210),y)
|
2016-09-17 08:33:40 -06:00
|
|
|
CSRCS += stm32_xen1210.c
|
|
|
|
endif
|
|
|
|
|
2013-03-22 16:19:59 +00:00
|
|
|
ifeq ($(CONFIG_NSH_LIBRARY),y)
|
2016-02-04 12:03:09 -06:00
|
|
|
CSRCS += stm32_appinit.c
|
2012-08-29 17:41:43 +00:00
|
|
|
endif
|
|
|
|
|
2014-03-04 08:58:01 -06:00
|
|
|
ifeq ($(CONFIG_ARCH_CUSTOM_PMINIT),y)
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_pm.c
|
2012-07-25 13:35:36 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PM_BUTTONS),y)
|
2015-07-03 09:33:02 -06:00
|
|
|
CSRCS += stm32_pmbuttons.c
|
2012-07-25 13:35:36 +00:00
|
|
|
endif
|
|
|
|
|
2017-08-24 10:26:53 -06:00
|
|
|
ifeq ($(CONFIG_SENSORS_ZEROCROSS),y)
|
2015-10-13 07:35:09 -06:00
|
|
|
CSRCS += stm32_zerocross.c
|
|
|
|
endif
|
|
|
|
|
2014-03-04 08:58:01 -06:00
|
|
|
ifeq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_idle.c
|
2012-07-25 13:35:36 +00:00
|
|
|
endif
|
|
|
|
|
2012-05-24 21:31:24 +00:00
|
|
|
ifeq ($(CONFIG_STM32_FSMC),y)
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_extmem.c
|
2012-05-24 21:31:24 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_LCD_SSD1289),y)
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_ssd1289.c
|
2012-05-24 21:31:24 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-10-06 18:58:19 -04:00
|
|
|
ifeq ($(CONFIG_LCD_SSD1351),y)
|
|
|
|
CSRCS += stm32_ssd1351.c
|
|
|
|
endif
|
|
|
|
|
2012-11-08 01:28:32 +00:00
|
|
|
ifeq ($(CONFIG_LCD_UG2864AMBAG01),y)
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_ug2864ambag01.c
|
2012-11-08 01:28:32 +00:00
|
|
|
endif
|
|
|
|
|
2012-12-26 20:04:57 +00:00
|
|
|
ifeq ($(CONFIG_LCD_UG2864HSWEG01),y)
|
2014-02-03 17:19:30 -06:00
|
|
|
CSRCS += stm32_ug2864hsweg01.c
|
2012-12-26 20:04:57 +00:00
|
|
|
endif
|
|
|
|
|
2016-07-11 07:08:27 -06:00
|
|
|
ifeq ($(CONFIG_EXAMPLES_OSTEST),y)
|
|
|
|
CSRCS += stm32_ostest.c
|
|
|
|
endif
|
|
|
|
|
2015-11-17 17:09:10 -05:00
|
|
|
ifeq ($(CONFIG_TIMER),y)
|
|
|
|
CSRCS += stm32_timer.c
|
|
|
|
endif
|
|
|
|
|
2015-11-22 13:28:59 -05:00
|
|
|
ifeq ($(CONFIG_BOARDCTL_UNIQUEID),y)
|
|
|
|
CSRCS += stm32_uid.c
|
|
|
|
endif
|
|
|
|
|
2015-09-04 16:42:34 -06:00
|
|
|
include $(TOPDIR)/configs/Board.mk
|