mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
boards/extensa/esp32: use wlan config to start wlan
Use wlan configuration option to enable wlan support for: - esp32-2432S028 - esp32-audio-kit - esp32-devkitc - esp32-ethernet-kit - esp32-lyrat - esp32-pico-kit - esp32-sparrow-kit - esp32-wrover-kit - lilygo_tbeam_lora_gps - ttgo_eink5_v2 - ttgo_lora_esp32 - ttgo_t_display_esp32 - esp32s2-saola-1 - esp32s3-box - esp32s3-devkit - esp32s3-eye - esp32s3-korvo-2 - esp32s3-lcd-ev - lckfb-szpi-esp32s3 Signed-off-by: Laczen JMS <laczenjms@gmail.com>
This commit is contained in:
committed by
Tiago Medicci Serrano
parent
b8964f5c46
commit
fb24cae852
@@ -59,7 +59,7 @@
|
||||
# include "esp32_board_spiflash.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -187,11 +187,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
@@ -386,4 +386,3 @@ int esp32_bringup(void)
|
||||
UNUSED(ret);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -213,11 +213,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
@@ -444,4 +444,3 @@ int esp32_bringup(void)
|
||||
UNUSED(ret);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -357,11 +357,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -174,11 +174,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -214,11 +214,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
@@ -445,4 +445,3 @@ int esp32_bringup(void)
|
||||
UNUSED(ret);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -245,11 +245,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -225,11 +225,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -213,11 +213,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
@@ -407,4 +407,3 @@ int esp32_bringup(void)
|
||||
UNUSED(ret);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -218,11 +218,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIRELESS
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -291,11 +291,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIRELESS
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -218,11 +218,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
# include "esp32_ble.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -294,11 +294,11 @@ int esp32_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
# include "esp32s2_tim_lowerhalf.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32s2_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -317,11 +317,11 @@ int esp32s2_bringup(void)
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIRELESS
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
# include "esp32s3_board_tim.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32s3_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -211,11 +211,11 @@ int esp32s3_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
# include "esp32s3_board_tim.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32s3_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -447,11 +447,11 @@ int esp32s3_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
# include "esp32s3_board_tim.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32s3_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -202,11 +202,11 @@ int esp32s3_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
# include "esp32s3_board_tim.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32s3_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -395,11 +395,11 @@ int esp32s3_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
# include "esp32s3_board_tim.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32s3_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -287,11 +287,11 @@ int esp32s3_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
# include "esp32s3_board_tim.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
# include "esp32s3_board_wlan.h"
|
||||
#endif
|
||||
|
||||
@@ -404,11 +404,11 @@ int esp32s3_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESPRESSIF_WIFI
|
||||
#ifdef CONFIG_ESPRESSIF_WLAN
|
||||
ret = board_wlan_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wireless subsystem=%d\n",
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize wlan subsystem=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user