Skip to content

Commit

Permalink
Enable SRP for the cc26x2x7 (#6377)
Browse files Browse the repository at this point in the history
* Add configuration to enable the OpenThread SRP client
* Add default GN option to add the CHIP platform mDNS code
  • Loading branch information
srickardti authored and pull[bot] committed Jul 3, 2021
1 parent 7d9c4d2 commit e38195b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@
*/
#define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512)

/**
* CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT
*
* Enable the OpenThread SRP client to allow for CHIP device discovery.
*/
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT 1

/**
* CHIP_CONFIG_EVENT_LOGGING_DEFAULT_IMPORTANCE
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
#define OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE 1

#define OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE 1
#define OPENTHREAD_CONFIG_ECDSA_ENABLE 1
#define OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE 1

// Use the TI-supplied default platform configuration for remainder
#include "openthread-core-cc13x2_26x2-config.h"
Expand Down
1 change: 0 additions & 1 deletion src/platform/cc13x2_26x2/Logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ extern "C" void cc13x2_26x2VLog(const char * msg, va_list v)
size_t len = (ret + 2U) < sizeof(sDebugUartBuffer) ? (ret + 2) : sizeof(sDebugUartBuffer);
sDebugUartBuffer[len - 2] = '\r';
sDebugUartBuffer[len - 1] = '\n';
sDebugUartBuffer[len] = '\0';

UART_write(sDebugUartHandle, sDebugUartBuffer, len);
}
Expand Down
1 change: 1 addition & 0 deletions src/platform/cc13x2_26x2/cc13x2_26x2-mbedtls-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
#define MBEDTLS_BASE64_C
#define MBEDTLS_ECDH_C
#define MBEDTLS_ECDSA_C
#define MBEDTLS_ECDSA_DETERMINISTIC
#define MBEDTLS_OID_C
#define MBEDTLS_PEM_PARSE_C
#define MBEDTLS_X509_USE_C
Expand Down
3 changes: 2 additions & 1 deletion src/platform/device.gni
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ declare_args() {
# Select DNS-SD implementation
if (chip_device_platform == "linux" || chip_device_platform == "esp32") {
chip_mdns = "minimal"
} else if (chip_device_platform == "darwin") {
} else if (chip_device_platform == "darwin" ||
chip_device_platform == "cc13x2_26x2") {
chip_mdns = "platform"
} else {
chip_mdns = "none"
Expand Down

0 comments on commit e38195b

Please sign in to comment.