mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
This patch adds i2c suite to run_ects.py. It also adds checks for return values from i2c_read and i2c_write functions. BUG=chromium:653183 BRANCH=none TEST=Run run_ects.py and verify all test pass. Change-Id: Ie3d6e1e6f131235e2b28f39e1546c9cb4c3b92f6 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/547024 Reviewed-by: Randall Spangler <rspangler@chromium.org>
21 lines
621 B
Plaintext
21 lines
621 B
Plaintext
/* 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.
|
|
*/
|
|
|
|
/*
|
|
* Test i2c write for 8, 16, and 32 bits. DUT runs as a master and TH
|
|
* runs as a slave.
|
|
*/
|
|
CTS_TEST(write8_test,,,,)
|
|
CTS_TEST(write16_test,,,,)
|
|
CTS_TEST(write32_test,,,,)
|
|
|
|
/*
|
|
* Test i2c read for 8, 16, and 32 bits. DUT runs as a master and TH
|
|
* runs as a slave. You need external pull-ups (10 kohms) on SDL and SDA
|
|
* to make read16_test and read32_test pass.
|
|
*/
|
|
CTS_TEST(read8_test,,,,)
|
|
CTS_TEST(read16_test,,,,)
|
|
CTS_TEST(read32_test,,,,) |