Skip to content

Commit

Permalink
Merge pull request #6 from IRNAS/release/v2.1.0
Browse files Browse the repository at this point in the history
Release v2.1.0
  • Loading branch information
eva-cerncic authored Aug 23, 2024
2 parents aea06cf + d020a12 commit 4057b6c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.1.0] - 2024-08-23

### Changed

- Depends on/selects ADC driver to make it compatible with Zephyr new Voltage Divider driver.

### Fixed

- Update init priority.

## [2.0.0] - 2023-01-12

### Added
Expand Down Expand Up @@ -36,7 +46,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Voltage divider driver

[Unreleased]: https://github.com/IRNAS/irnas-voltage-divider-driver/compare/v2.0.0...HEAD
[Unreleased]: https://github.com/IRNAS/irnas-voltage-divider-driver/compare/v2.1.0...HEAD

[2.1.0]: https://github.com/IRNAS/irnas-voltage-divider-driver/compare/v2.0.0...v2.1.0

[2.0.0]: https://github.com/IRNAS/irnas-voltage-divider-driver/compare/v1.0.1...v2.0.0

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This repository contains driver and basic test for voltage divider driver, based
on Zephyr Battery Voltage Measurement sample. Driver uses Zephyr ADC
infrastructure to measure the voltage of the device power supply.

**IMPORTANT:** From NCS v2.7.0 on, there is no need to use this driver as there is existing Zephyr driver available.

**IMPORTANT:** This driver is only suitable for Nordic chips, like `nrf52832`,
`nrf52840` and so on. This is due to the chip specific way how adc channels are
configured.
Expand Down
11 changes: 5 additions & 6 deletions drivers/voltage_divider/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@

menuconfig VOLTAGE_DIVIDER
bool "voltage divider sampling driver"
default y
depends on DT_HAS_IRNAS_VOLTAGE_DIVIDER_ENABLED
depends on ADC
default y
depends on DT_HAS_IRNAS_VOLTAGE_DIVIDER_ENABLED
select ADC
help
Enable voltage divider driver
Enable voltage divider driver

if VOLTAGE_DIVIDER

config VOLTAGE_DIVIDER_SHELL
bool "Enable shell commands for voltage divider"
depends on SHELL



module = VOLTAGE_DIVIDER
module-str = Voltage divider
source "subsys/logging/Kconfig.template.log_config"
Expand Down
2 changes: 1 addition & 1 deletion drivers/voltage_divider/voltage_divider.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static int voltage_divider_init(const struct device *dev)
}; \
\
DEVICE_DT_INST_DEFINE(N, voltage_divider_init, NULL, &divider_data_##N, \
&divider_config_##N, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY, \
&divider_config_##N, POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY, \
NULL);

DT_INST_FOREACH_STATUS_OKAY(VOLTAGE_DIVIDER_INIT)

0 comments on commit 4057b6c

Please sign in to comment.