mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
feat(esp32_openeth): move to common/espressif
Since this will be used for esp32s3 also, we can have this in common/espressif.
This commit is contained in:
parent
57bfd02cef
commit
d5b32f0335
4 changed files with 6 additions and 6 deletions
|
@ -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
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
|
@ -439,7 +439,7 @@ err:
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: esp32_openeth_initialize
|
* Name: esp_openeth_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Initialize the openeth driver
|
* Initialize the openeth driver
|
||||||
|
@ -452,7 +452,7 @@ err:
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int esp32_openeth_initialize(void)
|
int esp_openeth_initialize(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct openeth_priv_s *priv = &g_openeth;
|
struct openeth_priv_s *priv = &g_openeth;
|
|
@ -205,7 +205,7 @@ endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_ESP32_OPENETH),y)
|
ifeq ($(CONFIG_ESP32_OPENETH),y)
|
||||||
CHIP_CSRCS += esp32_openeth.c
|
CHIP_CSRCS += esp_openeth.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
|
@ -245,7 +245,7 @@ int board_ws2812_initialize(
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifdef CONFIG_ESP32_OPENETH
|
#ifdef CONFIG_ESP32_OPENETH
|
||||||
int esp32_openeth_initialize(void);
|
int esp_openeth_initialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|
|
@ -362,7 +362,7 @@ int esp32_bringup(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ESP32_OPENETH
|
#ifdef CONFIG_ESP32_OPENETH
|
||||||
ret = esp32_openeth_initialize();
|
ret = esp_openeth_initialize();
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
syslog(LOG_ERR, "ERROR: Failed to initialize Open ETH ethernet.\n");
|
syslog(LOG_ERR, "ERROR: Failed to initialize Open ETH ethernet.\n");
|
||||||
|
|
Loading…
Reference in a new issue