Files
OpenCellular/cts
Chris Chen 1b8fa6dbe4 cts: Added sync() function
sync() involves 2 gpios on each board, each labeled
GPIO_HANDSHAKE_OUTPUT and GPIO_HANDSHAKE_INPUT on
their respective boards. They both start low,
then the th wiggles his line up and down, waiting
for the dut to mimic it.

BRANCH=None
BUG=None
TEST=manual
- Connect handshake lines to appropriate
  pins on each board (pins found
  in board's gpio.inc)
- Build tests
- Flash boards
- run 'cat /dev/ttyACM0' in one terminal
- run 'cat /dev/ttyACM1' in another
- They should each have printed
  'successful sync'

Change-Id: I61233bca9605ba89c3628c2a65ca9013c56365ea
Reviewed-on: https://chromium-review.googlesource.com/359355
Commit-Ready: Chris Chen <twothreecc@google.com>
Tested-by: Chris Chen <twothreecc@google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
2016-07-12 11:04:41 -07:00
..
2016-07-12 11:04:41 -07:00
2016-07-12 11:04:41 -07:00
2016-07-11 21:27:47 -07:00
2016-07-12 11:04:41 -07:00
2016-07-09 01:41:01 -07:00
2016-07-11 21:27:46 -07:00
2016-07-09 01:41:01 -07:00

The first time you use this with a particular th,
connect only th and run ./cts/cts.py --th from
the ec directory.

Then connect both boards and you can run
./cts/cts to flash both boards.