driver: Only build dedic_gpio driver on supported chips

This commit is contained in:
Angus Gratton
2020-12-21 10:22:18 +11:00
parent 2d37bfa126
commit 1cc206f393
3 changed files with 1 additions and 4 deletions

View File

@ -27,7 +27,6 @@ if(${target} STREQUAL "esp32")
# SDMMC and MCPWM are in ESP32 only.
list(APPEND srcs "adc_common.c"
"dac_common.c"
"dedic_gpio.c"
"mcpwm.c"
"sdio_slave.c"
"sdmmc_host.c"

View File

@ -2,7 +2,7 @@
# Component Makefile
#
COMPONENT_SRCDIRS := . $(IDF_TARGET)
COMPONENT_OBJEXCLUDE += spi_slave_hd.o
COMPONENT_OBJEXCLUDE += spi_slave_hd.o dedic_gpio.o
COMPONENT_ADD_INCLUDEDIRS := include $(IDF_TARGET)/include $(IDF_TARGET)/include/driver

View File

@ -28,7 +28,6 @@
#include "driver/periph_ctrl.h"
#include "esp_rom_gpio.h"
#include "freertos/FreeRTOS.h"
#if SOC_DEDICATED_GPIO_SUPPORTED
#include "driver/dedic_gpio.h"
#include "soc/dedic_gpio_periph.h"
#if SOC_DEDIC_GPIO_ALLOW_REG_ACCESS
@ -402,4 +401,3 @@ err:
return ret_code;
}
#endif // SOC_DEDIC_GPIO_HAS_INTERRUPT
#endif // SOC_DEDICATED_GPIO_SUPPORTED