From 5a0322b9aff40b536183c610aaedcd9c4f3622de Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 11 Dec 2020 08:55:41 +0100 Subject: generate-dfa-benchmark: include gpio.h --- lib/harness.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3