summaryrefslogtreecommitdiff
path: root/board/nucleo-f072rb
diff options
context:
space:
mode:
authorChris Chen <twothreecc@google.com>2016-07-11 14:52:05 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-07-15 21:39:16 -0700
commit846741eddbb28e6770532ab09fb64dc619c2f6e6 (patch)
tree2e8e9815341d82ff83214ba5b4d94ef6869bd748 /board/nucleo-f072rb
parentdb1b3b34c21530672118754e84ddbe879925542e (diff)
downloadchrome-ec-846741eddbb28e6770532ab09fb64dc619c2f6e6.tar.gz
cts: Added GPIO test suite
Contains code for all the gpio tests so far. Code in cts_task for th and dut is for testing purposes and test result reporting will be updated in the next patch. BRANCH=None BUG=None TEST=Manual - Connect handshake and gpio test lines between th and dut - Build tests - run 'cat /dev/ttyACM0' in one terminal - run 'cat /def/ttyACM1' in another - Flash boards - All test results should print either passed or unknown Change-Id: I7142fb87a6ce0a20c571cde608fbbe60e35898ea Reviewed-on: https://chromium-review.googlesource.com/359935 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/nucleo-f072rb')
-rw-r--r--board/nucleo-f072rb/gpio.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/nucleo-f072rb/gpio.inc b/board/nucleo-f072rb/gpio.inc
index 91f8252e7f..7b38555ef8 100644
--- a/board/nucleo-f072rb/gpio.inc
+++ b/board/nucleo-f072rb/gpio.inc
@@ -23,4 +23,6 @@ ALTERNATE(PIN_MASK(A, 0x000C), 1, MODULE_UART, 0) /* USART2: PA2/PA3 */
/* CTS Signals */
GPIO(HANDSHAKE_INPUT, PIN(A, 4), GPIO_INPUT | GPIO_PULL_UP)
GPIO(HANDSHAKE_OUTPUT, PIN(B, 0), GPIO_ODR_LOW)
+GPIO(INPUT_TEST, PIN(C, 1), GPIO_INPUT | GPIO_PULL_UP)
+GPIO(OUTPUT_TEST, PIN(C, 0), GPIO_ODR_LOW)
#endif