Skip to content

Commit

Permalink
Adds DNS related changes for DIC
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirsrin committed Mar 30, 2023
1 parent ae17dc1 commit 2cac8f6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
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

0 comments on commit 2cac8f6

Please sign in to comment.