mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
driver: Only build dedic_gpio driver on supported chips
This commit is contained in:
@@ -27,7 +27,6 @@ if(${target} STREQUAL "esp32")
|
|||||||
# SDMMC and MCPWM are in ESP32 only.
|
# SDMMC and MCPWM are in ESP32 only.
|
||||||
list(APPEND srcs "adc_common.c"
|
list(APPEND srcs "adc_common.c"
|
||||||
"dac_common.c"
|
"dac_common.c"
|
||||||
"dedic_gpio.c"
|
|
||||||
"mcpwm.c"
|
"mcpwm.c"
|
||||||
"sdio_slave.c"
|
"sdio_slave.c"
|
||||||
"sdmmc_host.c"
|
"sdmmc_host.c"
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
# Component Makefile
|
# Component Makefile
|
||||||
#
|
#
|
||||||
COMPONENT_SRCDIRS := . $(IDF_TARGET)
|
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
|
COMPONENT_ADD_INCLUDEDIRS := include $(IDF_TARGET)/include $(IDF_TARGET)/include/driver
|
||||||
|
|
||||||
|
@@ -28,7 +28,6 @@
|
|||||||
#include "driver/periph_ctrl.h"
|
#include "driver/periph_ctrl.h"
|
||||||
#include "esp_rom_gpio.h"
|
#include "esp_rom_gpio.h"
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#if SOC_DEDICATED_GPIO_SUPPORTED
|
|
||||||
#include "driver/dedic_gpio.h"
|
#include "driver/dedic_gpio.h"
|
||||||
#include "soc/dedic_gpio_periph.h"
|
#include "soc/dedic_gpio_periph.h"
|
||||||
#if SOC_DEDIC_GPIO_ALLOW_REG_ACCESS
|
#if SOC_DEDIC_GPIO_ALLOW_REG_ACCESS
|
||||||
@@ -402,4 +401,3 @@ err:
|
|||||||
return ret_code;
|
return ret_code;
|
||||||
}
|
}
|
||||||
#endif // SOC_DEDIC_GPIO_HAS_INTERRUPT
|
#endif // SOC_DEDIC_GPIO_HAS_INTERRUPT
|
||||||
#endif // SOC_DEDICATED_GPIO_SUPPORTED
|
|
||||||
|
Reference in New Issue
Block a user