esp_openeth.h 540 B

123456789101112131415161718192021222324
  1. /*
  2. * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include "sdkconfig.h"
  8. #include "soc/interrupts.h"
  9. #if CONFIG_IDF_TARGET_ESP32C3
  10. /**
  11. * @brief Since ESP32-C3 target in QEMU doesn't support Wifi, re-use its interrupt source for ethernet
  12. */
  13. #define ETS_ETH_MAC_INTR_SOURCE ETS_WIFI_MAC_INTR_SOURCE
  14. /**
  15. * @brief Use an empty I/O range for the ethernet registers
  16. */
  17. #define DR_REG_EMAC_BASE 0x600CD000
  18. #endif // CONFIG_IDF_TARGET_ESP32C3