Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed Nov 22, 2021
1 parent fdc7a1e commit 8b88ffd
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 169 deletions.
5 changes: 0 additions & 5 deletions src/platform/Zephyr/DiagnosticDataProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,12 @@
* for Zephy platform.
*/

#if !CONFIG_NORDIC_SECURITY_BACKEND
#include <crypto/CHIPCryptoPAL.h> // nogncheck
#endif // !CONFIG_NORDIC_SECURITY_BACKEND

#include <platform/internal/CHIPDeviceLayerInternal.h>

#include <lib/support/logging/CHIPLogging.h>
#include <platform/DiagnosticDataProvider.h>
#include <platform/Zephy/DiagnosticDataProviderImpl.h>

#include <drivers/entropy.h>
#include <malloc.h>

namespace chip {
Expand Down
1 change: 1 addition & 0 deletions src/platform/Zephyr/PlatformManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ CHIP_ERROR PlatformManagerImpl::_InitChipStack(void)
err = Internal::ZephyrConfig::Init();
SuccessOrExit(err);
SetConfigurationMgr(&ConfigurationManagerImpl::GetDefaultInstance());
SetDiagnosticDataProvider(&DiagnosticDataProviderImpl::GetDefaultInstance());

#if !CONFIG_NORDIC_SECURITY_BACKEND
// Add entropy source based on Zephyr entropy driver
Expand Down
4 changes: 2 additions & 2 deletions src/platform/nrfconnect/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ static_library("nrfconnect") {
"../SingletonConfigurationManager.cpp",
"../Zephyr/BLEManagerImpl.cpp",
"../Zephyr/ConfigurationManagerImpl.cpp",
"../Zephyr/DiagnosticDataProviderImpl.cpp",
"../Zephyr/DiagnosticDataProviderImpl.h",
"../Zephyr/KeyValueStoreManagerImpl.cpp",
"../Zephyr/Logging.cpp",
"../Zephyr/PlatformManagerImpl.cpp",
Expand All @@ -39,8 +41,6 @@ static_library("nrfconnect") {
"ConnectivityManagerImpl.h",
"DeviceNetworkProvisioningDelegateImpl.cpp",
"DeviceNetworkProvisioningDelegateImpl.h",
"DiagnosticDataProviderImpl.cpp",
"DiagnosticDataProviderImpl.h",
"InetPlatformConfig.h",
"KeyValueStoreManagerImpl.h",
"PlatformManagerImpl.h",
Expand Down
40 changes: 0 additions & 40 deletions src/platform/nrfconnect/DiagnosticDataProviderImpl.cpp

This file was deleted.

40 changes: 0 additions & 40 deletions src/platform/nrfconnect/DiagnosticDataProviderImpl.h

This file was deleted.

4 changes: 2 additions & 2 deletions src/platform/telink/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ static_library("telink") {
"../SingletonConfigurationManager.cpp",
"../Zephyr/BLEManagerImpl.cpp",
"../Zephyr/ConfigurationManagerImpl.cpp",
"../Zephyr/DiagnosticDataProviderImpl.cpp",
"../Zephyr/DiagnosticDataProviderImpl.h",
"../Zephyr/KeyValueStoreManagerImpl.cpp",
"../Zephyr/Logging.cpp",
"../Zephyr/PlatformManagerImpl.cpp",
Expand All @@ -39,8 +41,6 @@ static_library("telink") {
"ConnectivityManagerImpl.h",
"DeviceNetworkProvisioningDelegateImpl.cpp",
"DeviceNetworkProvisioningDelegateImpl.h",
"DiagnosticDataProviderImpl.cpp",
"DiagnosticDataProviderImpl.h",
"InetPlatformConfig.h",
"KeyValueStoreManagerImpl.h",
"PlatformManagerImpl.h",
Expand Down
40 changes: 0 additions & 40 deletions src/platform/telink/DiagnosticDataProviderImpl.cpp

This file was deleted.

40 changes: 0 additions & 40 deletions src/platform/telink/DiagnosticDataProviderImpl.h

This file was deleted.

0 comments on commit 8b88ffd

Please sign in to comment.