nuttx/arch/mips/src/pic32mz/Make.defs

98 lines
3.0 KiB
Plaintext
Raw Normal View History

############################################################################
# arch/mips/src/pic32mz/Make.defs
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# 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.
#
############################################################################
# The start-up, "head", file
2020-04-27 04:25:22 +02:00
HEAD_ASRC = pic32mz_head.S
# Common MIPS files
CMN_ASRCS = mips_syscall0.S fork.S mips_cache.S
CMN_CSRCS = mips_allocateheap.c mips_copystate.c mips_createstack.c
CMN_CSRCS += mips_doirq.c mips_exit.c mips_getintstack.c mips_initialize.c
CMN_CSRCS += mips_initialstate.c mips_irq.c mips_lowputs.c mips_mdelay.c
CMN_CSRCS += mips_modifyreg8.c mips_modifyreg16.c mips_modifyreg32.c
CMN_CSRCS += mips_nputs.c mips_releasestack.c mips_registerdump.c
CMN_CSRCS += mips_schedulesigaction.c mips_sigdeliver.c mips_swint0.c
CMN_CSRCS += mips_stackframe.c mips_switchcontext.c mips_saveusercontext.c
CMN_CSRCS += mips_udelay.c mips_usestack.c mips_fork.c
# Configuration dependent common files
ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
2020-04-27 04:25:22 +02:00
CMN_CSRCS += mips_idle.c
endif
2020-04-27 04:25:22 +02:00
# Use of common/mips_etherstub.c is deprecated. The preferred mechanism is to
# use CONFIG_NETDEV_LATEINIT=y to suppress the call to mips_netinitialize() in
# mips_initialize(). Then this stub would not be needed.
ifneq ($(CONFIG_PIC32MZ_ETHERNET),y)
ifeq ($(CONFIG_NET),y)
2020-04-27 04:25:22 +02:00
CMN_CSRCS += mips_etherstub.c
endif
endif
# Required PIC32MZ files
2020-04-27 04:25:22 +02:00
CHIP_CSRCS = pic32mz_lowinit.c pic32mz_exception.c pic32mz_decodeirq.c
CHIP_CSRCS += pic32mz_irq.c pic32mz_timerisr.c pic32mz_gpio.c
CHIP_CSRCS += pic32mz_lowconsole.c pic32mz_serial.c
# Configuration-dependent PIC32MZ files
ifeq ($(CONFIG_PIC32MZ_GPIOIRQ),y)
2020-04-27 04:25:22 +02:00
CHIP_CSRCS += pic32mz_gpioirq.c
endif
2015-03-03 15:58:27 +01:00
ifeq ($(CONFIG_PIC32MZ_SPI),y)
2020-04-27 04:25:22 +02:00
CHIP_CSRCS += pic32mz_spi.c
2015-03-03 15:58:27 +01:00
endif
ifeq ($(CONFIG_PIC32MZ_I2C),y)
2020-04-27 04:25:22 +02:00
CHIP_CSRCS += pic32mz_i2c.c
endif
ifeq ($(CONFIG_PIC32MZ_TIMER),y)
2020-04-27 04:25:22 +02:00
CHIP_CSRCS += pic32mz_timer.c
ifeq ($(CONFIG_TIMER),y)
2020-04-27 04:25:22 +02:00
CHIP_CSRCS += pic32mz_timer_lowerhalf.c
endif
endif
ifeq ($(CONFIG_PIC32MZ_FREERUN),y)
2020-04-27 04:25:22 +02:00
CHIP_CSRCS += pic32mz_freerun.c
endif
ifeq ($(CONFIG_PIC32MZ_ONESHOT),y)
2020-04-27 04:25:22 +02:00
CHIP_CSRCS += pic32mz_oneshot.c
ifeq ($(CONFIG_ONESHOT),y)
2020-04-27 04:25:22 +02:00
CHIP_CSRCS += pic32mz_oneshot_lowerhalf.c
endif
endif
ifeq ($(CONFIG_PIC32MZ_ETHERNET),y)
2020-04-27 04:25:22 +02:00
CHIP_CSRCS += pic32mz_ethernet.c
endif
ifeq ($(CONFIG_PIC32MZ_DMA),y)
2020-04-27 04:25:22 +02:00
CHIP_CSRCS += pic32mz_dma.c
endif