Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Silabs]Adds DNS related changes for DIC #25897

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion examples/platform/silabs/SiWx917/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */

#ifndef configTOTAL_HEAP_SIZE
#ifdef DIC_ENABLE
#define configTOTAL_HEAP_SIZE ((size_t)(44 * 1024))
#define configTOTAL_HEAP_SIZE ((size_t)(50 * 1024))
#else
#define configTOTAL_HEAP_SIZE ((size_t)(34 * 1024))
#endif // DIC_ENABLE
Expand Down
2 changes: 1 addition & 1 deletion examples/platform/silabs/efr32/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
#ifndef configTOTAL_HEAP_SIZE
#ifdef SL_WIFI
#ifdef DIC_ENABLE
#define configTOTAL_HEAP_SIZE ((size_t)(50 * 1024))
#define configTOTAL_HEAP_SIZE ((size_t)(56 * 1024))
#else
#define configTOTAL_HEAP_SIZE ((size_t)(34 * 1024))
#endif // DIC
Expand Down
7 changes: 7 additions & 0 deletions src/lwip/silabs/lwipopts-rs911x.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@

#define LWIP_SOCKET 0

#ifdef DIC_ENABLE
#define LWIP_DNS 1
#define DNS_RAND_TXID() ((u32_t) rand())
#else
#define LWIP_DNS 0
#endif /* DIC_ENABLE */

#define LWIP_FREERTOS_USE_STATIC_TCPIP_TASK 1

#define LWIP_RAW 1
Expand Down
8 changes: 6 additions & 2 deletions src/lwip/silabs/lwipopts-wf200.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,20 @@
#define LWIP_SOCKET 0

#ifdef DIC_ENABLE
#define LWIP_DNS 1
#define DNS_RAND_TXID() ((u32_t) rand())
#define MEM_SIZE 5632
#define MEMP_NUM_UDP_PCB (6)
#else
#define LWIP_DNS 0
#define MEMP_NUM_UDP_PCB (5)
#endif // DIC_ENABLE

#define LWIP_FREERTOS_USE_STATIC_TCPIP_TASK 1

#define LWIP_RAW 1
#define MEMP_NUM_RAW_PCB (4)

#define MEMP_NUM_UDP_PCB (5)

#define LWIP_HAVE_LOOPIF (0)

// TODO: not sure why this is disabled
Expand Down
2 changes: 1 addition & 1 deletion third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ template("efr32_sdk") {

if (defined(invoker.chip_enable_wifi) && invoker.chip_enable_wifi) {
if (enable_dic) {
assert(chip_enable_wifi_ipv4, "enable chip_enable_wifi_ipv4")
defines += [ "DIC_ENABLE=1" ]
}
if (chip_enable_wifi_ipv4) {
Expand Down Expand Up @@ -288,7 +289,6 @@ template("efr32_sdk") {
"LWIP_ICMP=1",
"LWIP_IGMP=1",
"LWIP_DHCP=1",
"LWIP_DNS=0",
]
} else {
defines += [ "LWIP_IPV4=0" ]
Expand Down