summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/i2c.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2015-07-28 11:13:33 -0700
committerDamien George <damien.p.george@gmail.com>2015-07-30 00:38:32 +0100
commit92d4b51ad5d828930334f87d9619a78b5877a384 (patch)
treeb055ba812bfce720130c6c52272bde38e80a00c9 /stmhal/i2c.c
parent7e7fb0b7a3d716062281c2366de97a41a1ea87c1 (diff)
downloadmicropython-92d4b51ad5d828930334f87d9619a78b5877a384.tar.gz
micropython-92d4b51ad5d828930334f87d9619a78b5877a384.zip
stmhal: Add STM32F7DISC and associated changes.
Diffstat (limited to 'stmhal/i2c.c')
-rw-r--r--stmhal/i2c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stmhal/i2c.c b/stmhal/i2c.c
index 4f6e74245e..81fc33e8f2 100644
--- a/stmhal/i2c.c
+++ b/stmhal/i2c.c
@@ -37,6 +37,10 @@
#include "i2c.h"
#include MICROPY_HAL_H
+#if !defined(STM32F7)
+// The STM32F7 has Timing, where the F4 has ClockSpeed and DutyCycle, so we
+// need to figure that out before we can enable i2c
+
/// \moduleref pyb
/// \class I2C - a two-wire serial protocol
///
@@ -748,3 +752,5 @@ const mp_obj_type_t pyb_i2c_type = {
.make_new = pyb_i2c_make_new,
.locals_dict = (mp_obj_t)&pyb_i2c_locals_dict,
};
+
+#endif // STM32F7