2015-02-22 20:45:59 +01:00
|
|
|
############################################################################
|
|
|
|
# arch/mips/src/pic32mz/Make.defs
|
|
|
|
#
|
2021-03-13 11:24:50 +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-02-22 20:45:59 +01:00
|
|
|
#
|
2021-03-13 11:24:50 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-02-22 20:45:59 +01:00
|
|
|
#
|
2021-03-13 11:24:50 +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-02-22 20:45:59 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# The start-up, "head", file
|
|
|
|
|
2020-04-27 04:25:22 +02:00
|
|
|
HEAD_ASRC = pic32mz_head.S
|
2015-02-22 20:45:59 +01:00
|
|
|
|
|
|
|
# Common MIPS files
|
|
|
|
|
2023-07-05 15:43:50 +02:00
|
|
|
CMN_ASRCS = mips_syscall0.S fork.S mips_cache.S
|
2022-12-21 15:26:38 +01:00
|
|
|
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
|
2023-07-05 15:43:50 +02:00
|
|
|
CMN_CSRCS += mips_udelay.c mips_usestack.c mips_fork.c
|
2015-02-22 20:45:59 +01:00
|
|
|
|
|
|
|
# Configuration dependent common files
|
|
|
|
|
2018-05-07 19:17:19 +02:00
|
|
|
ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CMN_CSRCS += mips_idle.c
|
2018-05-07 19:17:19 +02:00
|
|
|
endif
|
|
|
|
|
2020-04-27 04:25:22 +02:00
|
|
|
# Use of common/mips_etherstub.c is deprecated. The preferred mechanism is to
|
2022-11-17 11:17:40 +01:00
|
|
|
# use CONFIG_NETDEV_LATEINIT=y to suppress the call to mips_netinitialize() in
|
|
|
|
# mips_initialize(). Then this stub would not be needed.
|
2015-07-17 15:20:16 +02:00
|
|
|
|
2015-02-22 20:45:59 +01:00
|
|
|
ifneq ($(CONFIG_PIC32MZ_ETHERNET),y)
|
|
|
|
ifeq ($(CONFIG_NET),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CMN_CSRCS += mips_etherstub.c
|
2015-02-22 20:45:59 +01:00
|
|
|
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
|
2015-02-22 20:45:59 +01:00
|
|
|
|
|
|
|
# Configuration-dependent PIC32MZ files
|
2015-02-25 18:09:04 +01:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_GPIOIRQ),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CHIP_CSRCS += pic32mz_gpioirq.c
|
2015-02-25 18:09:04 +01:00
|
|
|
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
|
2015-03-29 15:18:17 +02:00
|
|
|
|
2018-12-08 01:53:57 +01:00
|
|
|
ifeq ($(CONFIG_PIC32MZ_I2C),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CHIP_CSRCS += pic32mz_i2c.c
|
2018-12-08 01:53:57 +01:00
|
|
|
endif
|
|
|
|
|
2019-02-03 00:42:33 +01:00
|
|
|
ifeq ($(CONFIG_PIC32MZ_TIMER),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CHIP_CSRCS += pic32mz_timer.c
|
2019-02-03 00:42:33 +01:00
|
|
|
ifeq ($(CONFIG_TIMER),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CHIP_CSRCS += pic32mz_timer_lowerhalf.c
|
2019-02-07 00:23:51 +01:00
|
|
|
endif
|
2019-02-03 00:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_FREERUN),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CHIP_CSRCS += pic32mz_freerun.c
|
2019-02-03 00:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_ONESHOT),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CHIP_CSRCS += pic32mz_oneshot.c
|
2019-02-07 00:23:51 +01:00
|
|
|
ifeq ($(CONFIG_ONESHOT),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CHIP_CSRCS += pic32mz_oneshot_lowerhalf.c
|
2019-02-07 00:23:51 +01:00
|
|
|
endif
|
2019-02-03 00:42:33 +01:00
|
|
|
endif
|
|
|
|
|
2015-03-29 15:18:17 +02:00
|
|
|
ifeq ($(CONFIG_PIC32MZ_ETHERNET),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CHIP_CSRCS += pic32mz_ethernet.c
|
2015-03-29 15:18:17 +02:00
|
|
|
endif
|
2019-06-28 18:03:18 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_DMA),y)
|
2020-04-27 04:25:22 +02:00
|
|
|
CHIP_CSRCS += pic32mz_dma.c
|
2019-06-28 18:03:18 +02:00
|
|
|
endif
|