fuel_gauge: Sample sbs gauge driver with tests
Add a sample sbs gauge driver with feature parity and basic tests comparison to its sensor counter-part. Includes a simple stub test that is extended upon. Signed-off-by: Aaron Massey <aaronmassey@google.com>
This commit is contained in:
parent
ee6e85ca83
commit
28b8123887
18 changed files with 370 additions and 1 deletions
|
@ -6,9 +6,12 @@
|
|||
* Emulator for SBS 1.1 compliant smart battery fuel gauge.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_FUEL_GAUGE
|
||||
#define DT_DRV_COMPAT sbs_sbs_gauge_new_api
|
||||
#else
|
||||
#define DT_DRV_COMPAT sbs_sbs_gauge
|
||||
#endif /* CONFIG_FUEL_GAUGE */
|
||||
|
||||
#define LOG_LEVEL CONFIG_SENSOR_LOG_LEVEL
|
||||
#include <zephyr/logging/log.h>
|
||||
LOG_MODULE_REGISTER(sbs_sbs_gauge);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue