From bbc7fc692c5cdfd4a529d1b28311b68619e28fa5 Mon Sep 17 00:00:00 2001 From: toutes Date: Fri, 10 Sep 2021 22:13:55 +0800 Subject: [PATCH] add JS Interface Signed-off-by: toutes --- frameworks/targets/liteos_a/acelite_config.h | 6 +++++- frameworks/targets/liteos_m/acelite_config.h | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/frameworks/targets/liteos_a/acelite_config.h b/frameworks/targets/liteos_a/acelite_config.h index 79dc95a..5ea50c0 100755 --- a/frameworks/targets/liteos_a/acelite_config.h +++ b/frameworks/targets/liteos_a/acelite_config.h @@ -86,8 +86,12 @@ /** * support device API for JS */ -#define FEATURE_MODULE_DEVICE +#define FEATURE_MODULE_BATTERY +/** + * support device API for JS + */ +#define FEATURE_MODULE_DEVICE /** * timer module */ diff --git a/frameworks/targets/liteos_m/acelite_config.h b/frameworks/targets/liteos_m/acelite_config.h index a292610..f133836 100755 --- a/frameworks/targets/liteos_m/acelite_config.h +++ b/frameworks/targets/liteos_m/acelite_config.h @@ -47,6 +47,11 @@ */ #define FEATURE_TERMINATE_ABILITY +/** + * support device API for JS + */ +//#define FEATURE_MODULE_BATTERY + /** * support screenOnVisible() API from JS */