1 Star 0 Fork 127

zmx / startup_syspara_lite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.33 KB
一键复制 编辑 原始数据 按行查看 历史

syspara_lite

Introduction

The syspara_lite module provides APIs for obtaining device information, such as the product name, brand name, and manufacturer name, based on the OpenHarmony Product Compatibility Specifications (PCS). It also provides APIs for setting and obtaining system attributes.

Directory Structure

base/startup/syspara_lite/    # syspara_lite module
├── frameworks             # Source files for the syspara_lite module
├── hals                   # Header files for the hardware abstraction layer of the syspara_lite module
└── interfaces             # External APIs for the syspara_lite module

Constraints

  • The syspara_lite module is developed using the C language.
  • It supports mini-system devices (reference memory ≥ 128 KB), such as Hi3861 V100, and small-system devices (reference memory ≥ 1 MB), such as Hi3516D V300 and Hi3518E V300.
  • The fields of system attributes are defined by original equipment manufacturers (OEMs). Currently, only default values are provided. The specific values need to be adjusted as required.

Usage

To obtain the system attributes, use the following code:

char* value1 = GetDeviceType();
printf("Device type =%s\n", value1);
free(value1);
char* value2 = GetManufacture();
printf("Manufacture =%s\n", value2);
free(value2);
char* value3 = GetBrand();
printf("GetBrand =%s\n", value3);
free(value3);

Repositories Involved

Startup subsystem

startup_syspara_lite

startup_appspawn_lite

startup_bootstrap_lite

startup_init_lite

1
https://gitee.com/zmx1104/startup_syspara_lite.git
git@gitee.com:zmx1104/startup_syspara_lite.git
zmx1104
startup_syspara_lite
startup_syspara_lite
master

搜索帮助