niobe/base/startup/syspara_lite
houpengfei 396aa09915 init 2021-09-22 21:52:48 +08:00
..
adapter init 2021-09-22 21:52:48 +08:00
frameworks init 2021-09-22 21:52:48 +08:00
hals init 2021-09-22 21:52:48 +08:00
interfaces init 2021-09-22 21:52:48 +08:00
simulator init 2021-09-22 21:52:48 +08:00
LICENSE init 2021-09-22 21:52:48 +08:00
README.md init 2021-09-22 21:52:48 +08:00
README_zh.md init 2021-09-22 21:52:48 +08:00

README.md

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 = GetProductType();
printf("Product 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