summaryrefslogtreecommitdiff
path: root/i2c/i2c.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2015-03-29 21:37:03 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2015-03-29 21:37:03 +0200
commit49012588461f1a43e9e476f676d946d91c3df9e7 (patch)
treed9e6ab6bf279889ca660ddb86f3942d41e54bf3e /i2c/i2c.cpp
parent7b4ba03bc45dfed09759b9d0f99f6ddfde51ac43 (diff)
Added STM32L0 support.
Diffstat (limited to 'i2c/i2c.cpp')
-rw-r--r--i2c/i2c.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/i2c/i2c.cpp b/i2c/i2c.cpp
index 6aa25fc..d4a3d3a 100644
--- a/i2c/i2c.cpp
+++ b/i2c/i2c.cpp
@@ -12,6 +12,7 @@ I2C_t I2C2(0x40005800, 42000000, Interrupt::I2C2_EV, Interrupt::I2C2_ER);
//I2C_t I2C3(0x40005c00, 42000000, Interrupt::I2C3_EV, Interrupt::I2C3_ER);
#endif
+#if defined(STM32F1) || defined(STM32F4)
void I2C_t::irq_ev() {
uint32_t sr1 = reg.SR1;
reg.SR2;
@@ -133,3 +134,4 @@ void I2C_t::read_reg(uint8_t addr_, uint8_t reg_, uint8_t len, uint8_t* buf) {
Thread::yield();
}
}
+#endif