File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
components/esp_eth/src/openeth Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
2
+ * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
8
8
#include "sdkconfig.h"
9
9
#include "soc/interrupts.h"
10
10
11
- #if CONFIG_IDF_TARGET_ESP32C3
12
-
13
- /**
14
- * @brief Since ESP32-C3 target in QEMU doesn't support Wifi, reuse its interrupt source for ethernet
11
+ /*
12
+ * For targets which don't have an ethernet MAC and the associated interrupt source,
13
+ * we can reuse the Wifi interrupt source for ethernet, since QEMU doesn't emulate Wifi (yet).
14
+ * We also map the EMAC registers to an unused address range.
15
15
*/
16
+ #if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
16
17
#define ETS_ETH_MAC_INTR_SOURCE ETS_WIFI_MAC_INTR_SOURCE
17
-
18
-
19
- /**
20
- * @brief Use an empty I/O range for the ethernet registers
21
- */
22
18
#define DR_REG_EMAC_BASE 0x600CD000
23
-
24
- #endif // CONFIG_IDF_TARGET_ESP32C3
19
+ #endif
You can’t perform that action at this time.
0 commit comments