Skip to content

Commit 817044c

Browse files
authored
[Realtek] Separate the DAC source (project-chip#41110)
* [Realtek] Support lwip & add SetSystemLedState * [Realtek] Restyle files * [Realtek] Fix get mac address bug * [Realtek] Reduce app task stack size * [Realtek] Add RAM reduction configuration support * [Realtek] Reduce matter/thread task stack size * [Realtek] Move large var from stack to heap * [Realtek] Refactor examples platform paths * [Realtek] Fix dlps bug * [Realtek] Add dlps_on * [Realtek] Restyle files * [Realtek] Fix some error * [Realtek] Add scripts for firmware management * [Realtek] Separate the DAC source * [Realtek] restyle files * [Realtek] Adjust the file name * [Realtek] newly files to 2025 * [Realtek] Fix some error * [Realtek] restyle files * [Realtek] Fix some error * [Realtek] Optimize the code * [Realtek] Optimize code * [Realtek] Optimize code * [Realtek] Optimize the code * [Realtek] Force user to configure
1 parent 21fa5a2 commit 817044c

File tree

23 files changed

+457
-278
lines changed

23 files changed

+457
-278
lines changed

examples/all-clusters-app/realtek/bee/chip_main.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ list(
181181
${chip_dir}/examples/all-clusters-app/realtek/bee/main/Globals.cpp
182182
${chip_dir}/examples/platform/realtek/util/LEDWidget.cpp
183183
${chip_dir}/examples/providers/DeviceInfoProviderImpl.cpp
184+
${chip_dir}/examples/platform/realtek/dac_provider/CommonDACProvider.cpp
184185
)
185186

186187
add_library(

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <app/clusters/network-commissioning/network-commissioning.h>
2929
#include <app/util/af-types.h>
3030
#include <core/ErrorStr.h>
31+
#include <dac_provider/CommonDACProvider.h>
3132
#include <platform/realtek/BEE/FactoryDataProvider.h>
3233
#include <support/CHIPMem.h>
3334
#include <support/CodeUtils.h>
@@ -78,7 +79,7 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
7879
err = mFactoryDataProvider.Init();
7980
SuccessOrExit(err);
8081
SetCommissionableDataProvider(&mFactoryDataProvider);
81-
SetDeviceAttestationCredentialsProvider(&mFactoryDataProvider);
82+
SetDeviceAttestationCredentialsProvider(GetDACProvider());
8283
SetDeviceInstanceInfoProvider(&mFactoryDataProvider);
8384

8485
#if CONFIG_NETWORK_LAYER_BLE

examples/light-switch-app/realtek/bee/chip_main.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ list(
4242
${chip_dir}/examples/light-switch-app/realtek/bee/main/Globals.cpp
4343
${chip_dir}/examples/platform/realtek/util/LEDWidget.cpp
4444
${chip_dir}/examples/providers/DeviceInfoProviderImpl.cpp
45+
${chip_dir}/examples/platform/realtek/dac_provider/CommonDACProvider.cpp
4546
)
4647

4748
add_library(

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "CHIPDeviceManager.h"
2828
#include <app/clusters/network-commissioning/network-commissioning.h>
2929
#include <core/ErrorStr.h>
30+
#include <dac_provider/CommonDACProvider.h>
3031
#include <platform/realtek/BEE/FactoryDataProvider.h>
3132
#include <support/CHIPMem.h>
3233
#include <support/CodeUtils.h>
@@ -78,7 +79,7 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
7879
err = mFactoryDataProvider.Init();
7980
SuccessOrExit(err);
8081
SetCommissionableDataProvider(&mFactoryDataProvider);
81-
SetDeviceAttestationCredentialsProvider(&mFactoryDataProvider);
82+
SetDeviceAttestationCredentialsProvider(GetDACProvider());
8283
SetDeviceInstanceInfoProvider(&mFactoryDataProvider);
8384

8485
#if CONFIG_NETWORK_LAYER_BLE

examples/lighting-app/realtek/bee/chip_main.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ list(
161161
${chip_dir}/examples/lighting-app/realtek/bee/main/Globals.cpp
162162
${chip_dir}/examples/platform/realtek/util/LEDWidget.cpp
163163
${chip_dir}/examples/providers/DeviceInfoProviderImpl.cpp
164+
${chip_dir}/examples/platform/realtek/dac_provider/CommonDACProvider.cpp
164165
)
165166

166167
add_library(

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <app-common/zap-generated/ids/Clusters.h>
3131
#include <app/clusters/network-commissioning/network-commissioning.h>
3232
#include <core/ErrorStr.h>
33+
#include <dac_provider/CommonDACProvider.h>
3334
#include <platform/realtek/BEE/FactoryDataProvider.h>
3435
#include <support/CHIPMem.h>
3536
#include <support/CodeUtils.h>
@@ -80,7 +81,7 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
8081
err = mFactoryDataProvider.Init();
8182
SuccessOrExit(err);
8283
SetCommissionableDataProvider(&mFactoryDataProvider);
83-
SetDeviceAttestationCredentialsProvider(&mFactoryDataProvider);
84+
SetDeviceAttestationCredentialsProvider(GetDACProvider());
8485
SetDeviceInstanceInfoProvider(&mFactoryDataProvider);
8586

8687
#if CONFIG_NETWORK_LAYER_BLE

examples/lock-app/realtek/bee/chip_main.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,8 @@ list(
159159
${chip_dir}/examples/lock-app/realtek/bee/main/CHIPDeviceManager.cpp
160160
${chip_dir}/examples/lock-app/realtek/bee/main/Globals.cpp
161161
${chip_dir}/examples/platform/realtek/util/LEDWidget.cpp
162-
163-
164162
${chip_dir}/examples/providers/DeviceInfoProviderImpl.cpp
163+
${chip_dir}/examples/platform/realtek/dac_provider/CommonDACProvider.cpp
165164
)
166165

167166
add_library(

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "CHIPDeviceManager.h"
2828
#include <app/clusters/network-commissioning/network-commissioning.h>
2929
#include <core/ErrorStr.h>
30+
#include <dac_provider/CommonDACProvider.h>
3031
#include <platform/realtek/BEE/FactoryDataProvider.h>
3132
#include <support/CHIPMem.h>
3233
#include <support/CodeUtils.h>
@@ -77,7 +78,7 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
7778
err = mFactoryDataProvider.Init();
7879
SuccessOrExit(err);
7980
SetCommissionableDataProvider(&mFactoryDataProvider);
80-
SetDeviceAttestationCredentialsProvider(&mFactoryDataProvider);
81+
SetDeviceAttestationCredentialsProvider(GetDACProvider());
8182
SetDeviceInstanceInfoProvider(&mFactoryDataProvider);
8283

8384
#if CONFIG_NETWORK_LAYER_BLE

examples/ota-requestor-app/realtek/bee/chip_main.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ list(
3939
${chip_dir}/examples/ota-requestor-app/realtek/bee/main/AppTask.cpp
4040
${chip_dir}/examples/platform/realtek/util/LEDWidget.cpp
4141
${chip_dir}/examples/providers/DeviceInfoProviderImpl.cpp
42+
${chip_dir}/examples/platform/realtek/dac_provider/CommonDACProvider.cpp
4243
)
4344

4445
add_library(

examples/ota-requestor-app/realtek/bee/main/CHIPDeviceManager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <app/ConcreteAttributePath.h>
3030
#include <app/clusters/network-commissioning/network-commissioning.h>
3131
#include <core/ErrorStr.h>
32+
#include <dac_provider/CommonDACProvider.h>
3233
#include <platform/realtek/BEE/FactoryDataProvider.h>
3334
#include <support/CHIPMem.h>
3435
#include <support/CodeUtils.h>
@@ -79,7 +80,7 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
7980
err = mFactoryDataProvider.Init();
8081
SuccessOrExit(err);
8182
SetCommissionableDataProvider(&mFactoryDataProvider);
82-
SetDeviceAttestationCredentialsProvider(&mFactoryDataProvider);
83+
SetDeviceAttestationCredentialsProvider(GetDACProvider());
8384
SetDeviceInstanceInfoProvider(&mFactoryDataProvider);
8485

8586
#if CONFIG_NETWORK_LAYER_BLE

0 commit comments

Comments
 (0)