Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions boards/xtensa/esp32s3/esp32s3-xiao/src/esp32s3_bringup.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <errno.h>
#include <nuttx/fs/fs.h>
#include <nuttx/himem/himem.h>
#include <nuttx/power/pm.h>
#include <arch/board/board.h>

#include "espressif/esp_gpio.h"
Expand All @@ -47,6 +48,10 @@
# include "espressif/esp_hr_timer.h"
#endif

#ifdef CONFIG_ESPRESSIF_WIFI
# include "esp32s3_board_wlan.h"
#endif

#ifdef CONFIG_ESP32S3_I2C
# include "esp32s3_i2c.h"
#endif
Expand Down Expand Up @@ -157,6 +162,25 @@ int esp32s3_bringup(void)
}
#endif

#ifdef CONFIG_ESPRESSIF_WIFI
# ifdef CONFIG_PM
/* Wi-Fi radio calibration can't tolerate PM_STANDBY light sleep. */

pm_stay(PM_IDLE_DOMAIN, PM_IDLE);
# endif

ret = board_wlan_init();
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
ret);
}

# ifdef CONFIG_PM
pm_relax(PM_IDLE_DOMAIN, PM_IDLE);
# endif
#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.
Expand Down