zephyr/tests/drivers/aon_counter
Anas Nashif 66cfcc26bc tests: introduce Makefile.test
To customise test builds and support test related features such as time
stamps and a boot banner, introduce a Makefile variant that is dedicated
to testing.

Initially we introduce a new config overlay that is used for all tests, in
this case we enable BOOT_BANNER and BUILD_TIMESTAMP. This will print the
current version and the date, useful when reporting bugs and also an
indicator that the system has booted before the test has started.

For example:

[QEMU] CPU: qemu32
***** BOOTING ZEPHYR OS v1.6.99 - BUILD: Dec 21 2016 19:57:13 *****
tc_start() - Test Nanokernel CPU and thread routines
Initializing nanokernel objects
...
..

Change-Id: I224318cdeb55a301964ea366dbc577e2e3a09175
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-01-03 17:48:44 +00:00
..
src tests: aonc: skip counter stopping 2016-11-10 17:56:13 -08:00
Makefile tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
README.txt
prj.conf tests/drivers/aon_counter: make a ztest testcase 2016-11-10 01:08:14 +00:00
testcase.ini tests/drivers/aon_counter: make a ztest testcase 2016-11-10 01:08:14 +00:00

README.txt

Title: Quark Always-on counter and timer test app

Description:

A simple test app to test the AON counter and timer for quark d2000 and Quark SE.

--------------------------------------------------------------------------------

Building and Running Project:

    make BOARD=quark_d2000_crb

--------------------------------------------------------------------------------
Sample Output:

Always-on counter example app
Always-on counter started
Always-on counter value: 125
Always-on counter value: 218
Always-on counter value: 310
Always-on counter value: 401
Always-on counter value: 493
Always-on counter value: 586
Always-on counter value: 678
Always-on counter value: 769
Always-on counter value: 862
Always-on counter value: 952
Always-on counter value: 1045
Always-on counter value: 1139
Always-on counter value: 1233
Always-on counter value: 1329
Always-on counter value: 1422
Always-on counter value: 1518
Always-on counter value: 1612
Always-on counter value: 1708
Always-on counter value: 1802
Always-on counter value: 1898
Always-on counter does not support alarm!
Always-on counter stopped
Periodic timer example app
Periodic timer started
Periodic timer value: ffffff92
Periodic timer value: ffffff2f
Periodic timer value: fffffecd
Periodic timer value: fffffe6a
Periodic timer value: fffffe09
Periodic timer value: fffffda6
Periodic timer value: fffffd45
Periodic timer value: fffffce4
Periodic timer value: fffffc83
Periodic timer value: fffffc22
Periodic timer value: fffffbc1
Periodic timer value: fffffb5f
Periodic timer value: fffffafc
Periodic timer value: fffffa9a
Periodic timer value: fffffa37
Periodic timer value: fffff9d6
Periodic timer value: fffff973
Periodic timer value: fffff910
Periodic timer value: fffff8ae
Periodic timer value: fffff84d
Periodic Timer alarm on
Periodic timer callback data 30
Periodic timer callback value 9905
Periodic timer callback data 30
Periodic timer callback value 9905
Periodic timer callback data 30
Periodic timer callback value 9903
Periodic timer callback data 30
Periodic timer callback value 9903
Periodic timer alarm off
Periodic timer value: 000026c4
Periodic timer value: 00002661
Periodic timer value: 000025fe
Periodic timer value: 0000259b
Periodic timer value: 00002538
Periodic timer value: 000024d5
Periodic timer value: 00002472
Periodic timer value: 0000240f
Periodic timer value: 000023ac
Periodic timer value: 00002348
Periodic timer value: 000022e5
Periodic timer value: 00002282
Periodic timer value: 0000221f
Periodic timer value: 000021bd
Periodic timer value: 0000215a
Periodic timer value: 000020f7
Periodic timer value: 00002094
Periodic timer value: 00002032
Periodic timer value: 00001fcf
Periodic timer value: 00001f6c
Periodic timer stopped