diff options
author | Vic Yang <victoryang@chromium.org> | 2013-05-20 00:00:27 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-01-06 12:40:45 +0000 |
commit | cdcaf6ed8a1d18bdedb72fb665263c0dbff0ac8e (patch) | |
tree | ab01862ee3a4114e43ec974fbbbdd615e1e61d63 /test/build.mk | |
parent | 7c673390aecdd35da01ddf446a23667d95dccef1 (diff) | |
download | chrome-ec-cdcaf6ed8a1d18bdedb72fb665263c0dbff0ac8e.tar.gz |
Add interrupt support for emulator
This provides us a way to inject interrupts during a test. If a test has
interrupt_generator() defined, it will run in a separate thread. The
generator can then trigger interrupts when it decides to. The current
running task is suspended while emulator is executing ISR.
Also fixes a bug that tasks run without scheduler notifying them during
emulator start-up.
BUG=chrome-os-partner:19235
TEST=Repeatedly run all tests.
BRANCH=None
Change-Id: I0f921c47c0f848a9626da6272d9040e2b7c5ac86
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/55671
Diffstat (limited to 'test/build.mk')
-rw-r--r-- | test/build.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/build.mk b/test/build.mk index 76a6a68d6f..170b0e37b0 100644 --- a/test/build.mk +++ b/test/build.mk @@ -22,7 +22,7 @@ test-list-$(BOARD_SAMUS)= test-list-host=mutex pingpong utils kb_scan kb_mkbp lid_sw power_button hooks test-list-host+=thermal flash queue kb_8042 extpwr_gpio console_edit system test-list-host+=sbs_charging adapter host_command thermal_falco led_spring -test-list-host+=bklight_lid bklight_passthru +test-list-host+=bklight_lid bklight_passthru interrupt adapter-y=adapter.o bklight_lid-y=bklight_lid.o @@ -33,6 +33,7 @@ flash-y=flash.o hooks-y=hooks.o host_command-y=host_command.o kb_8042-y=kb_8042.o +interrupt-y=interrupt.o kb_mkbp-y=kb_mkbp.o kb_scan-y=kb_scan.o led_spring-y=led_spring.o led_spring_impl.o |