From 5eb973ce00d3eec5898d6cc63fd4a20f9e914111 Mon Sep 17 00:00:00 2001 From: alexandru-porosanu-nxp <52822544+alexandru-porosanu-nxp@users.noreply.github.com> Date: Thu, 31 Mar 2022 08:13:39 +0300 Subject: [PATCH] [build] enable coexistence parameter build (#7540) This commit enables defining OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE, which can be used by external build system (i.e. Matter) to override the platform defaults. This is useful for platforms having transceivers that also support coexistence between multiple protocols (WiFi/BLE etc.)` --- etc/gn/openthread.gni | 3 +++ src/core/BUILD.gn | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/etc/gn/openthread.gni b/etc/gn/openthread.gni index a64d83370..fe494b08e 100644 --- a/etc/gn/openthread.gni +++ b/etc/gn/openthread.gni @@ -231,6 +231,9 @@ if (openthread_enable_core_config_args) { # Enable builtin mbedtls management openthread_config_enable_builtin_mbedtls_management = openthread_external_mbedtls == "" + + # Enable radio coexistence + openthread_config_coexistence_enable = false } } diff --git a/src/core/BUILD.gn b/src/core/BUILD.gn index 25cd1a1d9..bd837f508 100644 --- a/src/core/BUILD.gn +++ b/src/core/BUILD.gn @@ -264,6 +264,10 @@ if (openthread_enable_core_config_args) { if (openthread_config_otns_enable) { defines += [ "OPENTHREAD_CONFIG_OTNS_ENABLE=1" ] } + + if (openthread_config_coexistence_enable) { + defines += [ "OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE=1" ] + } } }