diff options
Diffstat (limited to 'cts/common/dut_common.c')
-rw-r--r-- | cts/common/dut_common.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/cts/common/dut_common.c b/cts/common/dut_common.c deleted file mode 100644 index 6e62a280e2..0000000000 --- a/cts/common/dut_common.c +++ /dev/null @@ -1,28 +0,0 @@ -/* Copyright 2016 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "cts_common.h" -#include "gpio.h" -#include "watchdog.h" - -enum cts_rc sync(void) -{ - int input_level; - - gpio_set_level(GPIO_HANDSHAKE_OUTPUT, 0); - do { - watchdog_reload(); - input_level = gpio_get_level(GPIO_HANDSHAKE_INPUT); - } while (!input_level); - gpio_set_level(GPIO_HANDSHAKE_OUTPUT, 1); - do { - watchdog_reload(); - input_level = gpio_get_level(GPIO_HANDSHAKE_INPUT); - } while (input_level); - gpio_set_level(GPIO_HANDSHAKE_OUTPUT, 0); - - return CTS_RC_SUCCESS; -} - |