Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4130923
)
Use the defined flags instead of hardcoded values
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Mon, 11 Mar 2013 16:22:10 +0000
(17:22 +0100)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000
(17:03 +0100)
drivers/i2c.c
patch
|
blob
|
history
diff --git
a/drivers/i2c.c
b/drivers/i2c.c
index
0d4e539
..
98885c6
100644
(file)
--- a/
drivers/i2c.c
+++ b/
drivers/i2c.c
@@
-476,7
+476,8
@@
void i2c_on(uint32_t i2c_clk_freq)
mod_i2c.regs = (struct lpc_i2c*)LPC_I2C0;
mod_i2c.state = I2C_OK;
/* Enable I2C */
- i2c->ctrl_set = 0x40; /* Fixme, if enabling slave functions, write 0x44 instead */
+ /* Fixme, if enabling slave functions, add I2C_ASSERT_ACK flag */
+ i2c->ctrl_set = (I2C_ENABLE_FLAG);
/* And enable interrupts */
NVIC_EnableIRQ(I2C0_IRQ);
}
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !