Skip to content

Commit c923288

Browse files
authored
[Realtek] Modify path from src/platform/realtek/BEE to src/platform/realtek/freertos (project-chip#41695)
1 parent e31442d commit c923288

File tree

58 files changed

+128
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+128
-127
lines changed

config/realtek/bee/chip.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ list(
7272
${CHIP_ROOT}/src
7373
${CHIP_ROOT}/src/system
7474
${CHIP_ROOT}/src/app
75-
${CHIP_ROOT}/src/platform/realtek/BEE
75+
${CHIP_ROOT}/src/platform/realtek/freertos
7676
${CHIP_ROOT}/src/platform/OpenThread
7777
${CHIP_ROOT}/third_party/nlassert/repo/include
7878
${CHIP_ROOT}/third_party/nlio/repo/include

config/realtek/bee/toolchain/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ gcc_toolchain("bee") {
3333
current_os = "freertos"
3434
current_cpu = bee_cpu
3535
is_clang = false
36-
import("${chip_root}/src/platform/realtek/BEE/args.gni")
36+
import("${chip_root}/src/platform/realtek/freertos/args.gni")
3737
}
3838
}

examples/all-clusters-app/realtek/common/main/CHIPDeviceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <app/util/af-types.h>
3030
#include <core/ErrorStr.h>
3131
#include <dac_provider/CommonDACProvider.h>
32-
#include <platform/realtek/BEE/FactoryDataProvider.h>
32+
#include <platform/realtek/freertos/FactoryDataProvider.h>
3333
#include <support/CHIPMem.h>
3434
#include <support/CodeUtils.h>
3535

examples/all-clusters-app/realtek/common/main/include/AppTask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <lib/core/CHIPError.h>
3232
#include <platform/CHIPDeviceLayer.h>
3333

34-
#include <platform/realtek/BEE/FactoryDataProvider.h>
34+
#include <platform/realtek/freertos/FactoryDataProvider.h>
3535

3636
class AppTask
3737
{

examples/light-switch-app/realtek/common/main/CHIPDeviceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <app/clusters/network-commissioning/network-commissioning.h>
2929
#include <core/ErrorStr.h>
3030
#include <dac_provider/CommonDACProvider.h>
31-
#include <platform/realtek/BEE/FactoryDataProvider.h>
31+
#include <platform/realtek/freertos/FactoryDataProvider.h>
3232
#include <support/CHIPMem.h>
3333
#include <support/CodeUtils.h>
3434

examples/light-switch-app/realtek/common/main/include/AppTask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <lib/core/CHIPError.h>
3232
#include <platform/CHIPDeviceLayer.h>
3333

34-
#include <platform/realtek/BEE/FactoryDataProvider.h>
34+
#include <platform/realtek/freertos/FactoryDataProvider.h>
3535

3636
class AppTask
3737
{

examples/lighting-app/realtek/common/main/CHIPDeviceManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
#include <app/clusters/network-commissioning/network-commissioning.h>
3232
#include <core/ErrorStr.h>
3333
#include <dac_provider/CommonDACProvider.h>
34-
#include <platform/realtek/BEE/FactoryDataProvider.h>
34+
#include <platform/realtek/freertos/FactoryDataProvider.h>
3535
#include <support/CHIPMem.h>
3636
#include <support/CodeUtils.h>
3737
#if CONFIG_USE_CG_SECURE_DAC_VENDOR
38-
#include <platform/realtek/BEE/CG/CGSecureDACVendorProvider.h>
38+
#include <platform/realtek/freertos/CG/CGSecureDACVendorProvider.h>
3939
#endif
4040

4141
#if CHIP_ENABLE_OPENTHREAD

examples/lighting-app/realtek/common/main/include/AppTask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <lib/core/CHIPError.h>
3232
#include <platform/CHIPDeviceLayer.h>
3333

34-
#include <platform/realtek/BEE/FactoryDataProvider.h>
34+
#include <platform/realtek/freertos/FactoryDataProvider.h>
3535

3636
class AppTask
3737
{

examples/lock-app/realtek/common/main/BoltLockManager.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <support/CodeUtils.h>
2727

2828
using namespace chip;
29-
using BeeConfig = chip::DeviceLayer::Internal::BeeConfig;
29+
using RTKConfig = chip::DeviceLayer::Internal::RTKConfig;
3030

3131
BoltLockManager BoltLockManager::sLock;
3232

@@ -71,16 +71,16 @@ bool BoltLockManager::IsUnlocked()
7171
bool BoltLockManager::ReadConfigValues()
7272
{
7373
size_t outLen;
74-
BeeConfig::ReadConfigValueBin(BeeConfig::kConfigKey_LockUser, reinterpret_cast<uint8_t *>(mUsers),
74+
RTKConfig::ReadConfigValueBin(RTKConfig::kConfigKey_LockUser, reinterpret_cast<uint8_t *>(mUsers),
7575
sizeof(EmberAfPluginDoorLockUserInfo) * MATTER_ARRAY_SIZE(mUsers), outLen);
7676

77-
BeeConfig::ReadConfigValueBin(BeeConfig::kConfigKey_LockUserData, reinterpret_cast<uint8_t *>(mUserData),
77+
RTKConfig::ReadConfigValueBin(RTKConfig::kConfigKey_LockUserData, reinterpret_cast<uint8_t *>(mUserData),
7878
sizeof(UserData) * MATTER_ARRAY_SIZE(mUserData), outLen);
7979

80-
BeeConfig::ReadConfigValueBin(BeeConfig::kConfigKey_Credential, reinterpret_cast<uint8_t *>(mCredentials),
80+
RTKConfig::ReadConfigValueBin(RTKConfig::kConfigKey_Credential, reinterpret_cast<uint8_t *>(mCredentials),
8181
sizeof(EmberAfPluginDoorLockCredentialInfo) * MATTER_ARRAY_SIZE(mCredentials), outLen);
8282

83-
BeeConfig::ReadConfigValueBin(BeeConfig::kConfigKey_CredentialData, reinterpret_cast<uint8_t *>(mCredentialData),
83+
RTKConfig::ReadConfigValueBin(RTKConfig::kConfigKey_CredentialData, reinterpret_cast<uint8_t *>(mCredentialData),
8484
sizeof(mCredentialData), outLen);
8585

8686
return true;
@@ -124,10 +124,10 @@ bool BoltLockManager::SetUser(uint16_t userIndex, FabricIndex creator, FabricInd
124124
user.lastModifiedBy = modifier;
125125

126126
// Save user information in NVM flash
127-
BeeConfig::WriteConfigValueBin(BeeConfig::kConfigKey_LockUser, reinterpret_cast<const uint8_t *>(mUsers),
127+
RTKConfig::WriteConfigValueBin(RTKConfig::kConfigKey_LockUser, reinterpret_cast<const uint8_t *>(mUsers),
128128
sizeof(EmberAfPluginDoorLockUserInfo) * CONFIG_LOCK_NUM_USERS);
129129

130-
BeeConfig::WriteConfigValueBin(BeeConfig::kConfigKey_LockUserData, reinterpret_cast<const uint8_t *>(mUserData),
130+
RTKConfig::WriteConfigValueBin(RTKConfig::kConfigKey_LockUserData, reinterpret_cast<const uint8_t *>(mUserData),
131131
sizeof(UserData) * CONFIG_LOCK_NUM_USERS);
132132

133133
ChipLogProgress(Zcl, "Successfully set the user [index=%d]", userIndex);
@@ -167,10 +167,10 @@ bool BoltLockManager::SetCredential(uint16_t credentialIndex, FabricIndex creato
167167
credential.modificationSource = DlAssetSource::kMatterIM;
168168
credential.lastModifiedBy = modifier;
169169

170-
BeeConfig::WriteConfigValueBin(BeeConfig::kConfigKey_Credential, reinterpret_cast<const uint8_t *>(mCredentials),
170+
RTKConfig::WriteConfigValueBin(RTKConfig::kConfigKey_Credential, reinterpret_cast<const uint8_t *>(mCredentials),
171171
sizeof(EmberAfPluginDoorLockCredentialInfo) * CONFIG_LOCK_NUM_CREDENTIALS);
172172

173-
BeeConfig::WriteConfigValueBin(BeeConfig::kConfigKey_CredentialData, reinterpret_cast<const uint8_t *>(mCredentialData),
173+
RTKConfig::WriteConfigValueBin(RTKConfig::kConfigKey_CredentialData, reinterpret_cast<const uint8_t *>(mCredentialData),
174174
CONFIG_LOCK_NUM_CREDENTIALS * kMaxCredentialLength);
175175

176176
ChipLogProgress(Zcl, "Setting lock credential %u: %s", static_cast<unsigned>(credentialIndex),

examples/lock-app/realtek/common/main/CHIPDeviceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <app/clusters/network-commissioning/network-commissioning.h>
2929
#include <core/ErrorStr.h>
3030
#include <dac_provider/CommonDACProvider.h>
31-
#include <platform/realtek/BEE/FactoryDataProvider.h>
31+
#include <platform/realtek/freertos/FactoryDataProvider.h>
3232
#include <support/CHIPMem.h>
3333
#include <support/CodeUtils.h>
3434

0 commit comments

Comments
 (0)