diff --git a/arch/xtensa/src/esp32/esp32_openeth.c b/arch/xtensa/src/common/espressif/esp_openeth.c similarity index 99% rename from arch/xtensa/src/esp32/esp32_openeth.c rename to arch/xtensa/src/common/espressif/esp_openeth.c index a59a7d9af6..5d261b0baa 100644 --- a/arch/xtensa/src/esp32/esp32_openeth.c +++ b/arch/xtensa/src/common/espressif/esp_openeth.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/xtensa/src/esp32/esp32_openeth.c + * arch/xtensa/src/common/espressif/esp_openeth.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -439,7 +439,7 @@ err: ****************************************************************************/ /**************************************************************************** - * Name: esp32_openeth_initialize + * Name: esp_openeth_initialize * * Description: * Initialize the openeth driver @@ -452,7 +452,7 @@ err: * ****************************************************************************/ -int esp32_openeth_initialize(void) +int esp_openeth_initialize(void) { int ret; struct openeth_priv_s *priv = &g_openeth; diff --git a/arch/xtensa/src/esp32/Make.defs b/arch/xtensa/src/esp32/Make.defs index 3e69a2972d..43990fcde0 100644 --- a/arch/xtensa/src/esp32/Make.defs +++ b/arch/xtensa/src/esp32/Make.defs @@ -205,7 +205,7 @@ endif endif ifeq ($(CONFIG_ESP32_OPENETH),y) -CHIP_CSRCS += esp32_openeth.c +CHIP_CSRCS += esp_openeth.c endif ############################################################################# diff --git a/boards/xtensa/esp32/esp32-devkitc/src/esp32-devkitc.h b/boards/xtensa/esp32/esp32-devkitc/src/esp32-devkitc.h index 0e3ad3f7d7..ddce1e7baf 100644 --- a/boards/xtensa/esp32/esp32-devkitc/src/esp32-devkitc.h +++ b/boards/xtensa/esp32/esp32-devkitc/src/esp32-devkitc.h @@ -245,7 +245,7 @@ int board_ws2812_initialize( * ****************************************************************************/ #ifdef CONFIG_ESP32_OPENETH -int esp32_openeth_initialize(void); +int esp_openeth_initialize(void); #endif #endif /* __ASSEMBLY__ */ diff --git a/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c b/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c index e3891007bf..3fca7db59b 100644 --- a/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c +++ b/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c @@ -362,7 +362,7 @@ int esp32_bringup(void) #endif #ifdef CONFIG_ESP32_OPENETH - ret = esp32_openeth_initialize(); + ret = esp_openeth_initialize(); if (ret < 0) { syslog(LOG_ERR, "ERROR: Failed to initialize Open ETH ethernet.\n");