sensing: initial sensor list and enumerate each sensor
Implement sensing_init():
1) create sensors from device tree
2) sequence sensors following node dependency ordering rule generated by
Zephyr DTS
3) initial each sensor, includes:
a) creating sensor connection between reporter and client,
b) calling sensor init callback,
c) setting sensor state
Implement sensing_open_sensor():
1) malloc connection from reporter to application
2) bind connection
Implement sensing_close_sensr():
1) unbind connection
2) free connection from reporter to application
Implement sensing_set_config():
1) call set_interval
2) cann set_sensitivity
Implement sensing_get_config():
1) call get_interval
2) call get_sensitivity
Signed-off-by: Guangfu Hu <guangfu.hu@intel.com>
diff --git a/cmake/linker_script/common/common-rom.cmake b/cmake/linker_script/common/common-rom.cmake
index ed9f3fe..811a681 100644
--- a/cmake/linker_script/common/common-rom.cmake
+++ b/cmake/linker_script/common/common-rom.cmake
@@ -136,6 +136,10 @@
zephyr_iterable_section(NAME settings_handler_static KVMA RAM_REGION GROUP RODATA_REGION SUBALIGN 4)
endif()
+if(CONFIG_SENSING)
+ zephyr_iterable_section(NAME sensing_sensor_info KVMA RAM_REGION GROUP RODATA_REGION SUBALIGN 4)
+endif()
+
if(CONFIG_SENSOR_INFO)
zephyr_iterable_section(NAME sensor_info KVMA RAM_REGION GROUP RODATA_REGION SUBALIGN 4)
endif()