diff options
Diffstat (limited to 'cts/gpio/gpio_common.h')
-rw-r--r-- | cts/gpio/gpio_common.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cts/gpio/gpio_common.h b/cts/gpio/gpio_common.h new file mode 100644 index 0000000000..b19d23165a --- /dev/null +++ b/cts/gpio/gpio_common.h @@ -0,0 +1,21 @@ +/* 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. + */ + +#ifndef __GPIO_COMMON_H +#define __GPIO_COMMON_H + +/* sync_test tests whether sync completes successfully + * set_low_test checks if the dut can set a line low + * set_high test checks if the dut can set a line high + * read_low_test checks if the dut can read a line that is low + * read_high_test checks if the dut can read a line that is high + * od_read_high_test checks if the dut reads its true pin level (success) + * or its register level when configured as a low open drain output pin + */ + +#define READ_WAIT_TIME_MS 100 +#define GPIO_CTS_TEST_COUNT 6 + +#endif |