bus.cc (11262:3aeb879a66e6) | bus.cc (12772:362544959c40) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 39 unchanged lines hidden (view full) --- 48using std::vector; 49using std::map; 50 51/** 52 * 4KB - see e.g. 53 * http://infocenter.arm.com/help/topic/com.arm.doc.dui0440b/Bbajihec.html 54 */ 55I2CBus::I2CBus(const I2CBusParams *p) | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 39 unchanged lines hidden (view full) --- 48using std::vector; 49using std::map; 50 51/** 52 * 4KB - see e.g. 53 * http://infocenter.arm.com/help/topic/com.arm.doc.dui0440b/Bbajihec.html 54 */ 55I2CBus::I2CBus(const I2CBusParams *p) |
56 : BasicPioDevice(p, 0xfff), scl(1), sda(1), state(IDLE), currBit(7), | 56 : BasicPioDevice(p, 0x1000), scl(1), sda(1), state(IDLE), currBit(7), |
57 i2cAddr(0x00), message(0x00) 58{ 59 vector<I2CDevice*> devs = p->devices; 60 61 for (auto d : p->devices) { 62 devices[d->i2cAddr()] = d; 63 } 64} --- 179 unchanged lines hidden --- | 57 i2cAddr(0x00), message(0x00) 58{ 59 vector<I2CDevice*> devs = p->devices; 60 61 for (auto d : p->devices) { 62 devices[d->i2cAddr()] = d; 63 } 64} --- 179 unchanged lines hidden --- |