2022-09-21 17:52:08 +00:00
|
|
|
/* see LICENSE file for details on license */
|
2022-09-20 23:08:37 +00:00
|
|
|
#ifndef TSTATUS_BATTERY_H
|
|
|
|
|
|
|
|
#ifdef FISH
|
|
|
|
#define BATTERY_DIR "sbs-20-000b"
|
|
|
|
#elif TOASTER
|
|
|
|
#define BATTERY_DIR "BAT0"
|
|
|
|
#else
|
2022-11-13 15:31:26 +00:00
|
|
|
/* just assume the battery is BAT0 */
|
|
|
|
#define BATTERY_DIR "BAT0"
|
2022-09-20 23:08:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define BATTERY_PRE "/sys/class/power_supply/"
|
|
|
|
#define BATTERY_CAP "/capacity"
|
|
|
|
|
2022-11-13 16:03:55 +00:00
|
|
|
int battery_update(struct module *module);
|
2022-09-20 23:08:37 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
#define TSTATUS_BATTERY_H
|