0
0
Fork 0
wireless-proxy-esp32/components/DAP/cmsis-dap/include/gpio_common.h

50 lines
1.5 KiB
C

#ifndef __GPIO_COMMON_H__
#define __GPIO_COMMON_H__
#include "sdkconfig.h"
#include "esp_idf_version.h"
#ifdef CONFIG_IDF_TARGET_ESP8266
#include "esp8266/spi_struct.h"
#include "gpio.h"
#include "esp8266/include/esp8266/gpio_struct.h"
#include "esp8266/include/esp8266/timer_struct.h"
#include "esp8266/pin_mux_register.h"
#elif defined CONFIG_IDF_TARGET_ESP32
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 0)
#include "soc/io_mux_reg.h"
#include "soc/gpio_struct.h"
#include "soc/dport_access.h"
#include "soc/dport_reg.h"
#include "soc/periph_defs.h"
#include "soc/spi_struct.h"
#include "soc/spi_reg.h"
#include "soc/gpio_periph.h"
#include "hal/gpio_ll.h"
#else
#include "soc/soc/esp32/include/soc/gpio_struct.h"
#include "soc/soc/esp32/include/soc/dport_access.h"
#include "soc/soc/esp32/include/soc/dport_reg.h"
#include "soc/soc/esp32/include/soc/periph_defs.h"
#include "soc/soc/esp32/include/soc/spi_struct.h"
#include "soc/soc/esp32/include/soc/spi_reg.h"
#endif
#include "hal/gpio_types.h"
#elif defined CONFIG_IDF_TARGET_ESP32C3
#include "soc/gpio_struct.h"
#include "hal/gpio_ll.h"
#include "hal/clk_gate_ll.h"
#include "soc/gpio_struct.h"
#include "soc/dport_access.h"
#include "soc/periph_defs.h"
#include "soc/usb_serial_jtag_reg.h"
#include "soc/io_mux_reg.h"
#include "soc/spi_struct.h"
#include "soc/spi_reg.h"
#else
#error unknown hardware
#endif
#endif