tree: 0a5b2a071ce381bb7dd284fde077191b89ea1014 [path history] [tgz]
  1. args.gni
  2. BLEManagerImpl.cpp
  3. BLEManagerImpl.h
  4. BlePlatformConfig.h
  5. BUILD.gn
  6. CHIPDevicePlatformConfig.h
  7. CHIPDevicePlatformEvent.h
  8. CHIPPlatformConfig.h
  9. ConfigurationManagerImpl.cpp
  10. ConfigurationManagerImpl.h
  11. ConnectivityManagerImpl.cpp
  12. ConnectivityManagerImpl.h
  13. DeviceNetworkProvisioningDelegateImpl.cpp
  14. DeviceNetworkProvisioningDelegateImpl.h
  15. DiagnosticDataProviderImpl.cpp
  16. DiagnosticDataProviderImpl.h
  17. InetPlatformConfig.h
  18. KeyValueStoreManagerImpl.cpp
  19. KeyValueStoreManagerImpl.h
  20. Logging.cpp
  21. NFCManagerImpl.cpp
  22. NFCManagerImpl.h
  23. PlatformManagerImpl.cpp
  24. PlatformManagerImpl.h
  25. README.md
  26. SysHeapMalloc.cpp
  27. SysHeapMalloc.h
  28. SystemPlatformConfig.h
  29. SystemTimeSupport.cpp
  30. ThreadStackManagerImpl.cpp
  31. ThreadStackManagerImpl.h
  32. ZephyrConfig.cpp
  33. ZephyrConfig.h
src/platform/Zephyr/README.md

Overview of Zephyr Adaption

The following is a quick overview of the Zephyr adaptation of CHIP. Most of this code will have parallels in any new adaptation.

(All file names are relative to connectedhomeip/src/...).

include/platform/Zephyr/PlatformManagerImpl.h
Zephyr/PlatformManagerImpl.cpp

  • Concrete implementation of PlatformManager interface
  • Provides initialization of the CHIP stack and core event loop for the chip task
  • Relies on GenericPlatformManagerImpl_POSIX<> class to provide most of the implementation

include/platform/Zephyr/ConfigurationManagerImpl.h
Zephyr/ConfigurationManagerImpl.cpp

  • Concrete implementation of ConfigurationManager interface
  • Manages storage and retrieval of persistent configuration data
  • Relies on GenericConfigurationManagerImpl<> classes to implement most API functionality
  • Delegates low-level reading and writing of persistent values to ZephyrConfig class

include/platform/Zephyr/ThreadStackManagerImpl.h
Zephyr/ThreadStackManagerImpl.cpp

  • Concrete implementation of ThreadStackManager interface
  • Supports Thread stack initialization and core event loop processing
  • Relies on GenericThreadStackManagerImpl_OpenThread/POSIX<> classes to implement most API functionality

include/platform/Zephyr/BLEManagerImpl.h
Zephyr/BLEManagerImpl.cpp

  • Concrete implementation of the BLEManager interface
  • Maps CHIP‘s BLE interface abstractions (BleLayer, BlePlatformDelegate, BleApplicationDelegate) onto the platform’s native BLE services
  • Implements chip-compatible BLE advertising.

platform/Zephyr/Logging.cpp

  • Adaption of chip debug logging to platform logging facility.

platform/Zephyr/ZephyrConfig.cpp

  • Implements low-level read/write of persistent configuration values
  • Class API specifically designed to work in conjunction with the GenericConfigurationManagerImpl<> class.

platform/Zephyr/CHIPDevicePlatformEvent.h

  • Defines platform-specific event types and data for the chip Device Layer.