Skip to content

Commit 16f13e2

Browse files
committed
[bouffalo lab] Make it possible for application to implement its own fabric delegate
1 parent e5a49c8 commit 16f13e2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/platform/bouffalolab/common/plat/plat.h

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323

2424
#define EXT_DISCOVERY_TIMEOUT_SECS 20
2525

26+
#ifndef CONFIG_APP_FABRIC_TABLE_DELEGATE
27+
#define CONFIG_APP_FABRIC_TABLE_DELEGATE 0
28+
#endif
29+
2630
typedef void (*app_pds_gpio_irq_handler_t)(void * arg);
2731

2832
#ifdef __cplusplus

examples/platform/bouffalolab/common/plat/platform.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,10 @@ CHIP_ERROR PlatformManagerImpl::PlatformInit(void)
294294

295295
gExampleDeviceInfoProvider.SetStorageDelegate(&chip::Server::GetInstance().GetPersistentStorage());
296296

297+
#if CONFIG_APP_FABRIC_TABLE_DELEGATE == 0
297298
static AppFabricTableDelegate sAppFabricDelegate;
298299
chip::Server::GetInstance().GetFabricTable().AddFabricDelegate(&sAppFabricDelegate);
300+
#endif
299301

300302
chip::DeviceLayer::PlatformMgr().UnlockChipStack();
301303

0 commit comments

Comments
 (0)