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

[QPG6100] Apply size optimizations #6261

Merged
merged 1 commit into from
Apr 23, 2021
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
15 changes: 12 additions & 3 deletions src/lwip/qpg6100/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,25 @@

#define LWIP_SOCKET 0

// TODO: seems like this is unnecessary on Thread-only platforms
#ifdef INET_CONFIG_ENABLE_RAW_ENDPOINT
#define LWIP_RAW 1
#define MEMP_NUM_RAW_PCB (5)
#else
#define LWIP_RAW 0
#define MEMP_NUM_RAW_PCB 0
#endif // INET_CONFIG_ENABLE_RAW_ENDPOINT
#ifdef INET_CONFIG_ENABLE_TCP_ENDPOINT
#define LWIP_TCP 1
#else
#define LWIP_TCP 0
#define MEMP_NUM_TCP_PCB 0
#endif // INET_CONFIG_ENABLE_TCP_ENDPOINT

// TODO: verify count
#define MEMP_NUM_UDP_PCB (7)

#define LWIP_HAVE_LOOPIF (0)

// TODO: not sure why this is disabled
#define LWIP_HAVE_LOOPIF (0)
#define LWIP_NETIF_LOOPBACK (0)

#define MEMP_NUM_NETCONN (0)
Expand Down
6 changes: 6 additions & 0 deletions src/platform/qpg6100/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ lwip_api = true

chip_inet_config_enable_ipv4 = false
chip_inet_config_enable_dns_resolver = false
chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_raw_endpoint = false

# Size opt's
#chip_progress_logging = false
chip_detail_logging = false

chip_build_tests = false

Expand Down
2 changes: 1 addition & 1 deletion third_party/qpg_sdk/repo
Submodule repo updated from c5377b to 3b185d