projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make configurable the i2s word size to play, using cfg macros.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
i2c_sam3.c
diff --git
a/bertos/cpu/cortex-m3/drv/i2c_sam3.c
b/bertos/cpu/cortex-m3/drv/i2c_sam3.c
index 8330a7005d1bd439cd41a86074f06cd14b454fe5..333e76a3eb95443ae26c225043043d9e217efcec 100644
(file)
--- a/
bertos/cpu/cortex-m3/drv/i2c_sam3.c
+++ b/
bertos/cpu/cortex-m3/drv/i2c_sam3.c
@@
-194,7
+194,7
@@
static void i2c_setClock(I2c *i2c, int clock)
}
ASSERT(ck_div < 8);
}
ASSERT(ck_div < 8);
- LOG_INFO("i2c: using CKDIV = %lu and CLDIV/CHDIV = %lu\n
\n
", ck_div, cl_div);
+ LOG_INFO("i2c: using CKDIV = %lu and CLDIV/CHDIV = %lu\n", ck_div, cl_div);
HWREG(i2c->hw->base + TWI_CWGR_OFF) = 0;
HWREG(i2c->hw->base + TWI_CWGR_OFF) = (ck_div << 16) | (cl_div << 8) | cl_div;
HWREG(i2c->hw->base + TWI_CWGR_OFF) = 0;
HWREG(i2c->hw->base + TWI_CWGR_OFF) = (ck_div << 16) | (cl_div << 8) | cl_div;