2012-03-10 01:15:45 +01:00
|
|
|
############################################################################
|
2021-03-08 22:29:12 +01:00
|
|
|
# boards/arm/stm32/stm3220g-eval/src/Make.defs
|
2012-03-10 01:15:45 +01: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
|
2012-03-10 01:15:45 +01:00
|
|
|
#
|
2021-03-05 10:18:57 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2012-03-10 01:15:45 +01: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.
|
2012-03-10 01:15:45 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2020-05-18 21:42:11 +02:00
|
|
|
include $(TOPDIR)/Make.defs
|
2012-03-10 01:15:45 +01:00
|
|
|
|
2015-03-21 15:22:00 +01:00
|
|
|
CSRCS = stm32_boot.c stm32_spi.c
|
2012-03-10 01:15:45 +01:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_ARCH_LEDS),y)
|
2015-03-21 15:22:00 +01:00
|
|
|
CSRCS += stm32_autoleds.c
|
2012-03-10 01:15:45 +01:00
|
|
|
else
|
2015-03-21 15:22:00 +01:00
|
|
|
CSRCS += stm32_userleds.c
|
2012-03-10 01:15:45 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_ARCH_BUTTONS),y)
|
2015-03-21 15:22:00 +01:00
|
|
|
CSRCS += stm32_buttons.c
|
2012-03-10 01:15:45 +01:00
|
|
|
endif
|
|
|
|
|
2012-08-15 19:58:54 +02:00
|
|
|
ifeq ($(CONFIG_STM32_OTGFS),y)
|
2015-03-21 15:22:00 +01:00
|
|
|
CSRCS += stm32_usb.c
|
2012-04-08 00:32:35 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_STM32_FSMC),y)
|
2015-03-21 15:22:00 +01:00
|
|
|
CSRCS += stm32_lcd.c stm32_selectlcd.c stm32_deselectlcd.c stm32_selectsram.c stm32_deselectsram.c stm32_extmem.c
|
2012-04-08 00:32:35 +02:00
|
|
|
endif
|
|
|
|
|
2012-03-10 01:15:45 +01:00
|
|
|
ifeq ($(CONFIG_ADC),y)
|
2015-03-21 15:22:00 +01:00
|
|
|
CSRCS += stm32_adc.c
|
2012-03-10 01:15:45 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PWM),y)
|
2015-03-21 15:22:00 +01:00
|
|
|
CSRCS += stm32_pwm.c
|
2012-03-10 01:15:45 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_CAN),y)
|
2015-03-21 15:22:00 +01:00
|
|
|
CSRCS += stm32_can.c
|
2012-03-10 01:15:45 +01:00
|
|
|
endif
|
|
|
|
|
2021-08-01 09:00:54 +02:00
|
|
|
ifeq ($(CONFIG_BOARDCTL),y)
|
2016-02-02 21:22:54 +01:00
|
|
|
CSRCS += stm32_appinit.c
|
2012-03-10 01:15:45 +01:00
|
|
|
endif
|
|
|
|
|
2012-05-29 02:54:22 +02:00
|
|
|
ifeq ($(CONFIG_INPUT_STMPE811),y)
|
2015-03-21 15:22:00 +01:00
|
|
|
CSRCS += stm32_stmpe811.c
|
2012-05-28 21:48:26 +02:00
|
|
|
endif
|
|
|
|
|
2020-05-11 19:39:37 +02:00
|
|
|
DEPPATH += --dep-path board
|
|
|
|
VPATH += :board
|
2020-03-26 04:51:22 +01:00
|
|
|
CFLAGS += $(shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board)
|