Peter Johanson
690bc1bb44
refactor: Move drivers into properly module.
...
* Align our driver module layout to properly match Zephyr conventions,
allowing proper CMake setup to amend the library for each type of driver.
2023-09-16 11:52:40 -07:00
Xudong Zheng
e65a7e3075
fix(battery): change nRF52 ADC gain
...
With ADC pin, maximum 3.6V input needs gain 1/6 to be less than the 0.6V
reference.
With VDDHDIV5, maximum 6V input corresponds to 1.2V so gain 1/2 will be less
than the 0.6V reference and be slightly more precise.
2023-07-29 23:04:35 -07:00
Peter Johanson
3a958c667f
refactor: Move to zephyr/
include paths.
...
* Zephyr moved to properly namespaced headers, so major "rip
the bandaid" commit to move us to those everywhere.
2023-04-05 22:55:38 -07:00
Peter Johanson
4df83a9c0d
refactor: Move away from deprecated PM callback.
2022-04-03 00:10:29 -04:00
Joel Spadin
a6de43e665
feat: Add nrf VDDH battery driver
...
Added a driver which uses the nRF52's ADC channel on the VDDH pin to
read the battery voltage when using high voltage mode.
2021-07-24 23:39:13 -05:00