Skip to content
Commit 34fbf789 authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Carles Cufí
Browse files

tests: drivers: regulator: add voltage levels test



Add a new test that checks if the configured regulator voltage matches
the _real_ voltage obtained using an ADC. The test is generic so that
future regulators can be tested easily by just adding a new board
overlay file and a new test case entry.

Tested on nPM6001 using:

./scripts/twister \
	--device-testing \
	--device-serial /dev/ttyACM0 \
	-p nrf52840dk_nrf52840 \
	-X regulator_output_to_adc \
	-T tests/drivers/regulator/voltage

Signed-off-by: default avatarGerard Marull-Paretas <gerard.marull@nordicsemi.no>
parent 5993c943
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment