zephyr/samples/drivers/aon_counter
Andre Guedes 4048a59be3 counter: Fix returning code
Counter API and drivers were merged without fixing the new returning
error convention (errno.h codes). This patch fixes all occurrences of
DEV_* codes so -E* codes are used instead.

Change-Id: I85007e8565686b52121410badea547ed904460a0
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
2016-03-23 15:55:11 +00:00
..
src counter: Fix returning code 2016-03-23 15:55:11 +00:00
Makefile
aon.config
readme.txt
testcase.ini

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.

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

Building and Running Project:

    make BOARD=quark_d2000_crb

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

Important note:

This sample app requires QMSI lib which is not in the repo yet.
User needs to get the QMSI source code and compile it with command
like the following.
make SOC=quark_d2000 libqmsi
Then, copy the directory "libqmsi" to the ZEPHYR base directory.

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