diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2013-07-07 19:57:19 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2013-07-07 19:57:19 +0200 |
commit | a8a0eb825ea7208502954865ab09e7ec8a90221c (patch) | |
tree | 632686dacbee7778b4371ce13eeda488a500c232 /i2c | |
parent | c982426fd492b8645a04698f5a2b24e242902100 (diff) |
Don't build STM32-specific code for other targets.
Diffstat (limited to 'i2c')
-rw-r--r-- | i2c/i2c.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/i2c/i2c.cpp b/i2c/i2c.cpp index a395b13..833844e 100644 --- a/i2c/i2c.cpp +++ b/i2c/i2c.cpp @@ -1,3 +1,5 @@ +#if defined(STM32F1) || defined(STM32F4) + #include "i2c.h" #include <rcc/rcc.h> @@ -143,3 +145,5 @@ void I2C_t::read_reg(uint8_t addr_, uint8_t reg_, uint8_t len, uint8_t* buf) { Thread::yield(); } } + +#endif |