From 7b2d322df819e8a339cdb534e69d8e205765d3b2 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 29 Mar 2015 21:37:03 +0200 Subject: Added STM32L0 support. --- i2c/i2c.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'i2c') 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 -- cgit v1.2.3