samples/build_test: add build test for dw_aio_comparator
Add a build test for the dw_aio_comparator driver to catch any compilation issue. Change-Id: Id9c8e49656f1fd5843183fdd2cd0eb8d53fc8c8a Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
01fdf3ad12
commit
bfd02861fc
4 changed files with 28 additions and 0 deletions
6
samples/build_test/drivers/dw_aio_comparator/Makefile
Normal file
6
samples/build_test/drivers/dw_aio_comparator/Makefile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
KERNEL_TYPE = nano
|
||||||
|
PLATFORM_CONFIG ?= quark_se
|
||||||
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/microkernel/apps/hello_world/src/
|
||||||
|
CONF_FILE = prj.conf
|
||||||
|
|
||||||
|
include ${ZEPHYR_BASE}/Makefile.inc
|
13
samples/build_test/drivers/dw_aio_comparator/README.txt
Normal file
13
samples/build_test/drivers/dw_aio_comparator/README.txt
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
This test is used to test the DesignWare AIO/Comparator. The voltage input
|
||||||
|
pin is analog in A0 on circuit board, which maps to AIN[10] on chip.
|
||||||
|
|
||||||
|
To test:
|
||||||
|
1. Connect the A0 pin to ground via a resistor (to limit current).
|
||||||
|
Any larger then 1k Ohm would be fine.
|
||||||
|
2. Turn on the device.
|
||||||
|
3. Wait for device to boot, until "app started" line appeared.
|
||||||
|
4. Remove resistor between A0 pin and ground.
|
||||||
|
The line "*** A0, AIN[10] triggered rising." should appear.
|
||||||
|
5. Reconnect the resistor.
|
||||||
|
The line "*** A0, AIN[10] triggered falling." should appear.
|
||||||
|
6. Keep removing/inserting the resistor to your heart's content.
|
3
samples/build_test/drivers/dw_aio_comparator/prj.conf
Normal file
3
samples/build_test/drivers/dw_aio_comparator/prj.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Use standard security profile. (=> no need for a random number generator)
|
||||||
|
CONFIG_AIO_COMPARATOR=y
|
||||||
|
CONFIG_AIO_DW_COMPARATOR=y
|
|
@ -0,0 +1,6 @@
|
||||||
|
[test]
|
||||||
|
build_only = true
|
||||||
|
tags = drivers
|
||||||
|
|
||||||
|
arch_whitelist = x86
|
||||||
|
platform_whitelist = quark_se
|
Loading…
Add table
Add a link
Reference in a new issue