File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
modules/hal_silabs/wiseconnect
soc/silabs/silabs_siwx91x/siwg917 Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,15 @@ config WIFI_SILABS_SIWX91X_SNTP_CLIENT
80
80
than the Zephyr one. See also sl_sntp.h in Silabs HAL for more
81
81
information about the API.
82
82
83
+ config WIFI_SILABS_SIWX91X_HTTP_CLIENT
84
+ bool "Offloaded implementation of HTTP client"
85
+ help
86
+ Enable this option to allow to use the HTTP (hypertext transfer
87
+ protocol) implementation provided by the Network Co-Processor present
88
+ on SiWx91x series. This implementation usually require less resources
89
+ than the Zephyr one. See also sl_http_client.h in Silabs HAL for more
90
+ information about the API.
91
+
83
92
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
84
93
bool "WiFi roaming support"
85
94
default y
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ zephyr_include_directories(
40
40
41
41
zephyr_library_sources (
42
42
${SISDK_DIR} /platform/common/src/sl_core_cortexm.c
43
+ ${SISDK_DIR} /platform/common/src/sl_slist.c
43
44
${WISECONNECT_DIR} /components/device/silabs/si91x/mcu/core/chip/src/rsi_deepsleep_soc.c
44
45
${WISECONNECT_DIR} /components/device/silabs/si91x/mcu/core/chip/src/system_si91x.c
45
46
${WISECONNECT_DIR} /components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/clock_update.c
@@ -121,6 +122,17 @@ if(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD)
121
122
zephyr_library_sources_ifdef (CONFIG_WIFI_SILABS_SIWX91X_SNTP_CLIENT
122
123
${WISECONNECT_DIR} /components/service/sntp/si91x/sl_sntp.c
123
124
)
125
+ zephyr_compile_definitions_ifdef (CONFIG_WIFI_SILABS_SIWX91X_HTTP_CLIENT
126
+ SLI_SI91X_INTERNAL_HTTP_CLIENT
127
+ )
128
+ zephyr_include_directories_ifdef (CONFIG_WIFI_SILABS_SIWX91X_HTTP_CLIENT
129
+ ${WISECONNECT_DIR} /components/service/http_client/inc
130
+ ${WISECONNECT_DIR} /components/device/silabs/si91x/wireless/inc/http_client/inc
131
+ )
132
+ zephyr_library_sources_ifdef (CONFIG_WIFI_SILABS_SIWX91X_HTTP_CLIENT
133
+ ${WISECONNECT_DIR} /components/service/http_client/si91x_socket/sl_http_client.c
134
+ ${WISECONNECT_DIR} /components/device/silabs/si91x/wireless/src/sl_si91x_http_client_callback_framework.c
135
+ )
124
136
endif () # CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD
125
137
if (CONFIG_BT_SILABS_SIWX91X )
126
138
zephyr_compile_definitions (
Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ static void siwx91x_configure_network_stack(sl_si91x_boot_configuration_t *boot_
130
130
if (IS_ENABLED (CONFIG_WIFI_SILABS_SIWX91X_SNTP_CLIENT )) {
131
131
boot_config -> tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_SNTP_CLIENT ;
132
132
}
133
+ if (IS_ENABLED (CONFIG_WIFI_SILABS_SIWX91X_HTTP_CLIENT )) {
134
+ boot_config -> tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_HTTP_CLIENT ;
135
+ }
133
136
boot_config -> ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_WINDOW_SCALING ;
134
137
boot_config -> ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_TOTAL_SELECTS (10 );
135
138
You can’t perform that action at this time.
0 commit comments