2022-11-15 05:26:03 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2023-05-25 06:27:04 +08:00
|
|
|
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/fuel_gauge.h)
|
|
|
|
|
2022-11-15 05:26:03 +08:00
|
|
|
add_subdirectory_ifdef(CONFIG_SBS_GAUGE_NEW_API sbs_gauge)
|
2024-08-25 09:26:51 +08:00
|
|
|
add_subdirectory_ifdef(CONFIG_FUEL_GAUGE_COMPOSITE composite)
|
2022-11-18 04:42:58 +08:00
|
|
|
add_subdirectory_ifdef(CONFIG_MAX17048 max17048)
|
2023-06-19 22:33:13 +08:00
|
|
|
add_subdirectory_ifdef(CONFIG_BQ27Z746 bq27z746)
|
2022-12-30 06:05:40 +08:00
|
|
|
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE fuel_gauge_syscall_handlers.c)
|
2023-08-14 04:04:33 +08:00
|
|
|
|
|
|
|
if (CONFIG_EMUL AND CONFIG_USERSPACE)
|
|
|
|
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/emul_fuel_gauge.h)
|
|
|
|
zephyr_library_sources(emul_fuel_gauge_syscall_handlers.c)
|
|
|
|
endif()
|