2023-08-14 04:04:33 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2023 Google LLC
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2023-09-27 06:46:01 +08:00
|
|
|
#include <zephyr/internal/syscall_handler.h>
|
2023-08-14 04:04:33 +08:00
|
|
|
#include <zephyr/drivers/emul_fuel_gauge.h>
|
|
|
|
|
|
|
|
/* Emulator syscalls just need to exist as stubs as these are only called by tests. */
|
|
|
|
|
|
|
|
static inline int z_vrfy_emul_fuel_gauge_is_battery_cutoff(const struct emul *target, bool *cutoff)
|
|
|
|
{
|
|
|
|
return z_impl_emul_fuel_gauge_is_battery_cutoff(target, cutoff);
|
|
|
|
}
|
|
|
|
|
2024-01-24 17:35:04 +08:00
|
|
|
#include <zephyr/syscalls/emul_fuel_gauge_is_battery_cutoff_mrsh.c>
|
2023-08-14 04:04:33 +08:00
|
|
|
|
|
|
|
static inline int z_vrfy_emul_fuel_gauge_set_battery_charging(const struct emul *target,
|
|
|
|
uint32_t uV, int uA)
|
|
|
|
{
|
|
|
|
return z_impl_emul_fuel_gauge_set_battery_charging(target, uV, uA);
|
|
|
|
}
|
|
|
|
|
2024-01-24 17:35:04 +08:00
|
|
|
#include <zephyr/syscalls/emul_fuel_gauge_set_battery_charging_mrsh.c>
|