pca9552-test.c (91e3bf2e925671eb37e3b71cf7fdeb6b7f30248c) | pca9552-test.c (6328d8ffa6cb9d750e4bfcfd73ac25d3a39ceb63) |
---|---|
1/* 2 * QTest testcase for the PCA9552 LED blinker 3 * 4 * Copyright (c) 2017-2018, IBM Corporation. 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 8 */ 9 10#include "qemu/osdep.h" 11 12#include "libqtest.h" 13#include "libqos/qgraph.h" 14#include "libqos/i2c.h" | 1/* 2 * QTest testcase for the PCA9552 LED blinker 3 * 4 * Copyright (c) 2017-2018, IBM Corporation. 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or later. 7 * See the COPYING file in the top-level directory. 8 */ 9 10#include "qemu/osdep.h" 11 12#include "libqtest.h" 13#include "libqos/qgraph.h" 14#include "libqos/i2c.h" |
15#include "hw/misc/pca9552_regs.h" | 15#include "hw/gpio/pca9552_regs.h" |
16 17#define PCA9552_TEST_ID "pca9552-test" 18#define PCA9552_TEST_ADDR 0x60 19 20static void pca9552_init(QI2CDevice *i2cdev) 21{ 22 /* Switch on LEDs 0 and 12 */ 23 i2c_set8(i2cdev, PCA9552_LS0, 0x54); --- 70 unchanged lines hidden --- | 16 17#define PCA9552_TEST_ID "pca9552-test" 18#define PCA9552_TEST_ADDR 0x60 19 20static void pca9552_init(QI2CDevice *i2cdev) 21{ 22 /* Switch on LEDs 0 and 12 */ 23 i2c_set8(i2cdev, PCA9552_LS0, 0x54); --- 70 unchanged lines hidden --- |