1 /* 2 * Copyright 2023 Google LLC 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/syscall_handler.h> 8 #include <zephyr/drivers/emul_fuel_gauge.h> 9 10 /* Emulator syscalls just need to exist as stubs as these are only called by tests. */ 11 z_vrfy_emul_fuel_gauge_is_battery_cutoff(const struct emul * target,bool * cutoff)12static inline int z_vrfy_emul_fuel_gauge_is_battery_cutoff(const struct emul *target, bool *cutoff) 13 { 14 return z_impl_emul_fuel_gauge_is_battery_cutoff(target, cutoff); 15 } 16 17 #include <syscalls/emul_fuel_gauge_is_battery_cutoff_mrsh.c> 18 z_vrfy_emul_fuel_gauge_set_battery_charging(const struct emul * target,uint32_t uV,int uA)19static inline int z_vrfy_emul_fuel_gauge_set_battery_charging(const struct emul *target, 20 uint32_t uV, int uA) 21 { 22 return z_impl_emul_fuel_gauge_set_battery_charging(target, uV, uA); 23 } 24 25 #include <syscalls/emul_fuel_gauge_set_battery_charging_mrsh.c> 26