mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
board/risc-v/espressif: Add ULP wakeup modes board support
Add ULP wakeup modes board support for esp32[-c6|-p4] Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
This commit is contained in:
parent
ac26b63556
commit
2eb686f72f
2 changed files with 18 additions and 6 deletions
|
|
@ -543,11 +543,17 @@ int esp_bringup(void)
|
|||
* peripherals to use supported peripherals properly on ULP core
|
||||
*/
|
||||
|
||||
esp_ulp_init();
|
||||
|
||||
ret = esp_ulp_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: esp_ulp_init failed: %d\n", ret);
|
||||
}
|
||||
else
|
||||
{
|
||||
# ifdef CONFIG_ESPRESSIF_ULP_USE_TEST_BIN
|
||||
esp_ulp_load_bin((char *)esp_ulp_bin, esp_ulp_bin_len);
|
||||
esp_ulp_load_bin((char *)esp_ulp_bin, esp_ulp_bin_len);
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NET_OA_TC6
|
||||
|
|
|
|||
|
|
@ -459,11 +459,17 @@ int esp_bringup(void)
|
|||
* peripherals to use supported peripherals properly on ULP core
|
||||
*/
|
||||
|
||||
esp_ulp_init();
|
||||
|
||||
ret = esp_ulp_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: esp_ulp_init failed: %d\n", ret);
|
||||
}
|
||||
else
|
||||
{
|
||||
# ifdef CONFIG_ESPRESSIF_ULP_USE_TEST_BIN
|
||||
esp_ulp_load_bin((char *)esp_ulp_bin, esp_ulp_bin_len);
|
||||
esp_ulp_load_bin((char *)esp_ulp_bin, esp_ulp_bin_len);
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
/* If we got here then perhaps not all initialization was successful, but
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue