mirror of
https://github.com/apache/nuttx.git
synced 2026-05-12 01:42:49 +08:00
feat(esp32s3-devkit): initialize opencores eth mac
This commit is contained in:
committed by
Xiang Xiao
parent
c17ab3beb5
commit
d2d653aebf
@@ -269,5 +269,9 @@ int esp32s3_lan9250_initialize(int port);
|
||||
int esp32s3_lan9250_uninitialize(int port);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32S3_OPENETH
|
||||
int esp_openeth_initialize(void);
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __BOARDS_XTENSA_ESP32S3_ESP32S3_DEVKIT_SRC_ESP32S3_DEVKIT_H */
|
||||
|
||||
@@ -438,6 +438,14 @@ int esp32s3_bringup(void)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32S3_OPENETH
|
||||
ret = esp_openeth_initialize();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize Open ETH ethernet.\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEV_GPIO
|
||||
ret = esp32s3_gpio_init();
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user