mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
boards/risc-v/espressif: Add DFS board support
Add DFS board support for risc-v based Espressif devices Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
This commit is contained in:
@@ -461,7 +461,7 @@ int esp_bringup(void)
|
||||
}
|
||||
#endif /* CONFIG_ESPRESSIF_LEDC */
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_AUTO_SLEEP
|
||||
#ifdef CONFIG_PM
|
||||
/* Configure PM */
|
||||
|
||||
ret = esp_pmconfigure();
|
||||
|
||||
@@ -509,7 +509,7 @@ int esp_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_AUTO_SLEEP
|
||||
#ifdef CONFIG_PM
|
||||
/* Configure PM */
|
||||
|
||||
ret = esp_pmconfigure();
|
||||
|
||||
@@ -451,7 +451,7 @@ int esp_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_AUTO_SLEEP
|
||||
#ifdef CONFIG_PM
|
||||
/* Configure PM */
|
||||
|
||||
ret = esp_pmconfigure();
|
||||
|
||||
@@ -109,6 +109,10 @@
|
||||
# include "esp_board_adc.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
# include "espressif/esp_pm.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
|
||||
# include "espressif/esp_nxdiag.h"
|
||||
#endif
|
||||
@@ -423,6 +427,16 @@ int esp_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
/* Configure PM */
|
||||
|
||||
ret = esp_pmconfigure();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: esp_pmconfigure failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL
|
||||
ret = esp_nxdiag_initialize();
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user