How elfbobo/hs-fbb works
HiDiTing is an embedded SDK and reference platform for lightweight smart terminals, including wearable devices. A typical product workflow starts with an application or user interaction, uses application and middleware services, then reaches operating-system, driver, and hardware capabilities. The tree and README establish these layers and major features, but most implementation excerpts are absent; edges therefore show only broad relationships explicitly documented by the README, not inferred call chains.
Main entry points: main.c Standard app · wearable Wearable apps · ohos OpenHarmony layer · kernel LiteOS kernels
Components 23
Applications
- Wearable apps
src/application/wearable - Standard app
src/application/3322/3322_app_standard/main.c - On-device AI
src/application/3322/3322_ai_engine - Audio features
src/application/audio - Wearable input
src/application/3322/input_wear/input_feature
Platform services
- Graphics engine
src/middleware/services/gui/uikit/ui/frameworks/engines/gfx/gfx_engine_manager.cpp - Device connectivity
src/ohos/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/softbus_proxychannel_pipeline.c - Media services
src/middleware/services/media/foundation/service/intelligent_voice_service
System software
- Bootloader
src/bootloader/flashboot_3322/main.c - LiteOS kernels
src/kernel - OpenHarmony layer
src/ohos - Communication protocols
src/application/ux/activity/bg_activity - USB mass storage
src/open_source/freebsd/sys/dev/usb/f_mass_storage_open.c
Hardware access
- Peripheral drivers
src/drivers - Audio hardware
src/application/audio/arch - Chip registers
src/drivers/chips/3322/include/shared
Security and updates
- Protected storage API
src/include/middleware/utils/psa/protected_storage.h - PSA storage dispatch
src/kernel/seliteos/kernel/service/psa/storage/dispatch_psa_storage.c - Secure storage
src/kernel/seliteos/kernel/base/sec_storage/include/sec_storage.h - Key storage
src/ohos/base/security/huks/services/huks_standard/huks_service/main/core/src/hks_storage_manager.c - NV storage
src/middleware/utils/nv/nv_storage_app/nv_storage.h - Upgrade storage
src/middleware/utils/update/storage/upg_storage.c
Other components
- Device user
Connections 22
- Device user → Wearable apps: uses
README.md - Device user → Standard app: uses
README.md - Wearable apps → OpenHarmony layer: runs on
README.md - Standard app → OpenHarmony layer: runs on
README.md - Wearable apps → Graphics engine: uses graphics
- Wearable apps → Device connectivity: uses connectivity
- Standard app → On-device AI: offers AI
- Standard app → Audio features: offers audio
- Standard app → Wearable input: handles input
- On-device AI → Media services: uses voice services
- Audio features → Audio hardware: targets audio
README.md - Device connectivity → Communication protocols: supports protocols
- OpenHarmony layer → LiteOS kernels: uses kernel
README.md - LiteOS kernels → Peripheral drivers: uses drivers
README.md - Peripheral drivers → Chip registers: accesses registers
src/drivers/chips/3322/include/shared/clocks_ccrg.h - Bootloader → Peripheral drivers: initializes hardware
src/bootloader/flashboot_3322/main.c - Protected storage API → PSA storage dispatch: dispatches requests
- PSA storage dispatch → Secure storage: reads and writes
src/kernel/seliteos/kernel/service/psa/storage/dispatch_psa_storage.c - OpenHarmony layer → Key storage: provides key storage
src/ohos/base/security/huks/services/huks_standard/huks_service/main/core/src/hks_storage_manager.c - Standard app → NV storage: uses persistent settings
- Standard app → Upgrade storage: supports upgrades
- LiteOS kernels → USB mass storage: supports USB storage
src/open_source/freebsd/sys/dev/usb/f_mass_storage_open.c