Compile with DEBUG fail / i2c.c
Stefan Mandl
stefan.mandl1 at googlemail.com
Tue Nov 15 11:13:43 CET 2011
Hello all,
if you compile with #ifdef DEBUG,
2 litte typo errors came up...
Regrads from stefan
my patch...
--- a/src/target/firmware/calypso/i2c.c
+++ b/src/target/firmware/calypso/i2c.c
@@ -67,7 +67,7 @@ int i2c_write(uint8_t chip, uint32_t addr, int alen,
const uint8_t *buffer, int
if (len > 16)
return -1;
- printd("i2c_write(chip=0x%02u, addr=0x%02u): ", chip, addr)
+ printd("i2c_write(chip=0x%02u, addr=0x%02u): ", chip, addr);
writeb(chip & 0x3f, I2C_REG(DEVICE_REG));
writeb(addr & 0xff, I2C_REG(ADDRESS_REG));
@@ -91,7 +91,7 @@ int i2c_write(uint8_t chip, uint32_t addr, int alen,
const uint8_t *buffer, int
/* wait until transfer completes */
while (1) {
uint8_t reg = readb(I2C_REG(STATUS_ACTIVITY_REG));
- printd("I2C Status: 0x%02x\n", rerg & 0xf);
+ printd("I2C Status: 0x%02x\n", reg & 0xf);
if (!(reg & I2C_STATUS_IDLE)) // 0: idle 1: not idle
break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20111115/7da217e5/attachment.html>
More information about the baseband-devel
mailing list