Skip to content

Commit 4168fa2

Browse files
igrrespressif-bot
authored andcommitted
feat(esp_eth): enable openeth in QEMU for ESP32-S3
1 parent ae0a230 commit 4168fa2

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed
Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -8,17 +8,12 @@
88
#include "sdkconfig.h"
99
#include "soc/interrupts.h"
1010

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.
1515
*/
16+
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
1617
#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-
*/
2218
#define DR_REG_EMAC_BASE 0x600CD000
23-
24-
#endif // CONFIG_IDF_TARGET_ESP32C3
19+
#endif

0 commit comments

Comments
 (0)