2021-01-22 19:37:44 +01:00
|
|
|
#############################################################################
|
2022-12-07 21:55:30 +01:00
|
|
|
# boards/risc-v/esp32c3/common/src/Make.defs
|
2021-01-22 19:37:44 +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
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
#############################################################################
|
|
|
|
|
2022-12-07 21:55:30 +01:00
|
|
|
ifeq ($(CONFIG_ARCH_BOARD_COMMON),y)
|
2021-02-17 22:44:27 +01:00
|
|
|
|
2021-04-20 00:06:55 +02:00
|
|
|
ifeq ($(CONFIG_ESP32C3_SPI),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_spi.c
|
2021-04-20 00:06:55 +02:00
|
|
|
endif
|
|
|
|
|
2021-04-20 00:08:30 +02:00
|
|
|
ifeq ($(CONFIG_SPI_DRIVER),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_spidev.c
|
2021-04-20 00:08:30 +02:00
|
|
|
endif
|
|
|
|
|
2021-05-15 03:41:51 +02:00
|
|
|
ifeq ($(CONFIG_SPI_SLAVE_DRIVER),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_spislavedev.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_ESP32C3_SPIFLASH),y)
|
|
|
|
CSRCS += esp32c3_board_spiflash.c
|
2021-05-15 03:41:51 +02:00
|
|
|
endif
|
|
|
|
|
2021-02-23 23:17:41 +01:00
|
|
|
ifeq ($(CONFIG_I2C_DRIVER),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_i2c.c
|
2021-02-23 23:17:41 +01:00
|
|
|
endif
|
|
|
|
|
2022-12-07 21:55:30 +01:00
|
|
|
ifeq ($(CONFIG_ESP32C3_WIRELESS),y)
|
|
|
|
CSRCS += esp32c3_board_wlan.c
|
2022-04-06 12:22:18 +02:00
|
|
|
endif
|
|
|
|
|
2022-12-07 21:55:30 +01:00
|
|
|
ifeq ($(CONFIG_CAN),y)
|
|
|
|
CSRCS += esp32c3_board_twai.c
|
2021-03-02 13:09:36 +01:00
|
|
|
endif
|
|
|
|
|
2021-02-22 13:35:17 +01:00
|
|
|
ifeq ($(CONFIG_WATCHDOG),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_wdt.c
|
2021-02-22 13:35:17 +01:00
|
|
|
endif
|
|
|
|
|
2021-04-12 19:37:05 +02:00
|
|
|
ifeq ($(CONFIG_ONESHOT),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_oneshot.c
|
2021-02-26 17:15:40 +01:00
|
|
|
endif
|
|
|
|
|
2021-05-03 07:52:39 +02:00
|
|
|
ifeq ($(CONFIG_PWM),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_ledc.c
|
2021-05-03 07:52:39 +02:00
|
|
|
endif
|
|
|
|
|
2021-05-04 16:31:14 +02:00
|
|
|
ifeq ($(CONFIG_ADC),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_adc.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SENSORS_BMP180),y)
|
|
|
|
CSRCS += esp32c3_board_bmp180.c
|
2021-05-04 16:31:14 +02:00
|
|
|
endif
|
|
|
|
|
2021-09-16 06:24:34 +02:00
|
|
|
ifeq ($(CONFIG_LCD_ST7735),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_st7735.c
|
2021-09-16 06:24:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_LCD_ST7789),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_st7789.c
|
2021-09-16 06:24:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_LCD_GC9A01),y)
|
2022-12-07 21:55:30 +01:00
|
|
|
CSRCS += esp32c3_board_gc9a01.c
|
2021-09-16 06:24:34 +02:00
|
|
|
endif
|
|
|
|
|
2022-12-07 21:55:30 +01:00
|
|
|
ifeq ($(CONFIG_SENSORS_APDS9960),y)
|
|
|
|
CSRCS += esp32c3_board_apds9960.c
|
2021-07-02 10:48:45 +02:00
|
|
|
endif
|
|
|
|
|
2022-12-07 21:55:30 +01:00
|
|
|
ifeq ($(CONFIG_LCD_APA102),y)
|
|
|
|
CSRCS += esp32c3_board_apa102.c
|
2021-07-02 10:48:45 +02:00
|
|
|
endif
|
|
|
|
|
2023-03-09 19:32:21 +01:00
|
|
|
ifeq ($(CONFIG_MPU60X0_I2C),y)
|
|
|
|
CSRCS += esp32c3_board_mpu60x0_i2c.c
|
|
|
|
endif
|
|
|
|
|
2022-12-07 21:55:30 +01:00
|
|
|
DEPPATH += --dep-path src
|
|
|
|
VPATH += :src
|
2023-06-22 17:32:24 +02:00
|
|
|
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)src
|
2021-07-06 08:50:11 +02:00
|
|
|
|
2022-12-07 21:55:30 +01:00
|
|
|
endif
|