2022-11-14 22:26:03 +01:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2023-05-25 00:27:04 +02:00
|
|
|
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/fuel_gauge.h)
|
|
|
|
|
2022-11-14 22:26:03 +01:00
|
|
|
add_subdirectory_ifdef(CONFIG_SBS_GAUGE_NEW_API sbs_gauge)
|
2022-11-17 21:42:58 +01:00
|
|
|
add_subdirectory_ifdef(CONFIG_MAX17048 max17048)
|
2023-06-19 16:33:13 +02:00
|
|
|
add_subdirectory_ifdef(CONFIG_BQ27Z746 bq27z746)
|
2022-12-29 23:05:40 +01:00
|
|
|
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE fuel_gauge_syscall_handlers.c)
|
2023-08-13 22:04:33 +02: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()
|