-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
576 changed files
with
98,914 additions
and
233,054 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "ubxlib"] | ||
path = ubxlib | ||
url = https://github.com/u-blox/ubxlib.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# BQ27520 Battery Gauge Driver | ||
This folder contains a BQ27520 Battery Gauge basic driver, as a Zephyr module that can be used by the main application. | ||
|
||
### Known Issues | ||
Trying to use the `BQ27520_DESIGN_CAPACITY` and `BQ27520_TERMINATE_VOLTAGE` configuration options via the *prj.conf* in your application may trigger compilation errors. | ||
Nevertheless, the battery gauge is set up to work properly with the battery used in XPLR-IOT-1 devices and these configuration options do not need to be altered in the *prj.conf* file for use with an XPLR-IOT-1 device. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if(CONFIG_BQ27520) | ||
zephyr_include_directories(.) | ||
|
||
zephyr_library() | ||
|
||
zephyr_library_sources_ifdef(CONFIG_BQ27520 bq27520.c) | ||
|
||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright (c) 2020 Linumiz | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BQ27520 | ||
bool "BQ27520 Fuel Gauge" | ||
depends on I2C | ||
help | ||
Enable I2C-based driver for BQ27520 Fuel Gauge. | ||
|
||
if BQ27520 | ||
|
||
config BQ27520_LAZY_CONFIGURE | ||
bool "Configure on first usage instead of init" | ||
default false | ||
help | ||
Configuring the sensor can take a long time, which | ||
we can delay till the first sample request and keep | ||
the boot time as short as possible. | ||
|
||
config BQ27520_DESIGN_CAPACITY | ||
int "Battery Design Capacity" | ||
default 1000 | ||
help | ||
Battery Design Capacity | ||
|
||
config BQ27520_TERMINATE_VOLTAGE | ||
int "Battery Terminate Voltage (V)" | ||
default 3000 | ||
help | ||
Battery Terminate Voltage (V) | ||
|
||
|
||
endif # BQ27520 |
Oops, something went wrong.