mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
esp32[c3|c6|h2]: Add nxdiag without esptool wrapper
This commit is contained in:
committed by
Xiang Xiao
parent
d4bcdcb2fc
commit
bbb9ce114f
@@ -98,6 +98,10 @@
|
||||
# include "esp_board_spislavedev.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
|
||||
# include "espressif/esp_nxdiag.h"
|
||||
#endif
|
||||
|
||||
#include "esp32c3-generic.h"
|
||||
|
||||
/****************************************************************************
|
||||
@@ -361,6 +365,14 @@ int esp_bringup(void)
|
||||
}
|
||||
#endif /* CONFIG_ESPRESSIF_LEDC */
|
||||
|
||||
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
|
||||
ret = esp_nxdiag_initialize();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: esp_nxdiag_initialize failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* If we got here then perhaps not all initialization was successful, but
|
||||
* at least enough succeeded to bring-up NSH with perhaps reduced
|
||||
* capabilities.
|
||||
|
||||
@@ -102,6 +102,10 @@
|
||||
# include "esp_board_qencoder.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
|
||||
# include "espressif/esp_nxdiag.h"
|
||||
#endif
|
||||
|
||||
#include "esp32c6-devkitc.h"
|
||||
|
||||
/****************************************************************************
|
||||
@@ -385,6 +389,14 @@ int esp_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
|
||||
ret = esp_nxdiag_initialize();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: esp_nxdiag_initialize failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* If we got here then perhaps not all initialization was successful, but
|
||||
* at least enough succeeded to bring-up NSH with perhaps reduced
|
||||
* capabilities.
|
||||
|
||||
@@ -98,6 +98,10 @@
|
||||
#include "esp_board_mfrc522.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
|
||||
# include "espressif/esp_nxdiag.h"
|
||||
#endif
|
||||
|
||||
#include "esp32c6-devkitm.h"
|
||||
|
||||
/****************************************************************************
|
||||
@@ -363,6 +367,14 @@ int esp_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
|
||||
ret = esp_nxdiag_initialize();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: esp_nxdiag_initialize failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* If we got here then perhaps not all initialization was successful, but
|
||||
* at least enough succeeded to bring-up NSH with perhaps reduced
|
||||
* capabilities.
|
||||
|
||||
@@ -90,6 +90,10 @@
|
||||
# include "esp_board_mcpwm.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
|
||||
# include "espressif/esp_nxdiag.h"
|
||||
#endif
|
||||
|
||||
#include "esp32h2-devkit.h"
|
||||
|
||||
/****************************************************************************
|
||||
@@ -338,6 +342,14 @@ int esp_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
|
||||
ret = esp_nxdiag_initialize();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: esp_nxdiag_initialize failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* If we got here then perhaps not all initialization was successful, but
|
||||
* at least enough succeeded to bring-up NSH with perhaps reduced
|
||||
* capabilities.
|
||||
|
||||
Reference in New Issue
Block a user