diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2016-07-27 15:46:42 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-10-07 21:51:54 -0700 |
commit | 473ecbe2b36bc44da2552cd5814874a495913fc1 (patch) | |
tree | 116b0c658c2fa7916941d114d3ddb6ea33e8a71a /cts/common | |
parent | 241d9e3728c6e2d23d71330be6ddfa5015414f1d (diff) | |
download | chrome-ec-473ecbe2b36bc44da2552cd5814874a495913fc1.tar.gz |
cts: Add real interrupt test
Interrupt test checks whether DUT can be interrupted by an interrupt
and an interrupt handler can be invoked as expected.
Note the previous interrupt test ported from test/interrupt.c runs in
an emulated environment on the host, thus does not test the real
interrupt capability of the chip.
BUG=chromium:653195
BRANCH=none
TEST=Run cts.py -m interrupt
Change-Id: I21cecff07594f048633d1c1b699fb3a1876379e0
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/363943
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'cts/common')
-rw-r--r-- | cts/common/cts_common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cts/common/cts_common.h b/cts/common/cts_common.h index e3a47d3e1b..607adbc623 100644 --- a/cts/common/cts_common.h +++ b/cts/common/cts_common.h @@ -27,7 +27,8 @@ #define CTS_DEBUG_PRINTF(format, args...) #endif -#define READ_WAIT_TIME_MS 100 +#define READ_WAIT_TIME_MS 100 +#define CTS_INTERRUPT_TRIGGER_DELAY_US (250 * MSEC) /* In a single test, only one board can return unknown, the other must * return a useful result (i.e. success, failure, etc) |