summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-12-11 08:55:41 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2020-12-11 08:55:41 +0100
commit5a0322b9aff40b536183c610aaedcd9c4f3622de (patch)
tree9bd691c0b8461e3d8dd08fd2d9f445bf974c67bf /lib
parent60cacce5d0cf33a4a790ca230447cdab0bcb53d5 (diff)
generate-dfa-benchmark: include gpio.h
Diffstat (limited to 'lib')
-rw-r--r--lib/harness.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/harness.py b/lib/harness.py
index 92ae7fb..f329434 100644
--- a/lib/harness.py
+++ b/lib/harness.py
@@ -429,19 +429,27 @@ class OnboardTimerHarness(TransitionHarness):
# TODO Make nicer
ret += """\nvoid runLASync(){
// ======================= LED SYNC ================================
+ #ifdef PTALOG_GPIO
gpio.write(PTALOG_GPIO, 1);
+ #endif
gpio.led_on(0);
gpio.led_on(1);
+ #ifdef PTALOG_GPIO
gpio.write(PTALOG_GPIO, 0);
+ #endif
for (unsigned char i = 0; i < 4; i++) {
arch.sleep_ms(250);
}
+ #ifdef PTALOG_GPIO
gpio.write(PTALOG_GPIO, 1);
+ #endif
gpio.led_off(0);
gpio.led_off(1);
+ #ifdef PTALOG_GPIO
gpio.write(PTALOG_GPIO, 0);
+ #endif
// ======================= LED SYNC ================================
}\n\n"""
return ret