summaryrefslogtreecommitdiff
path: root/stmhal/modpyb.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2015-08-03 23:04:57 -0700
committerDamien George <damien.p.george@gmail.com>2015-08-05 23:38:24 +0100
commit34fe5a30c6b9ec4ff5d9b10ef9b2e39ec5fd778f (patch)
treefe41fe0346d09471c6b4308b100b4a8ee71e10e5 /stmhal/modpyb.c
parent26664dd1802615b48ce5f53aa8a00a79353c7ae3 (diff)
stmhal: Enable I2C support for F7 MCUs.
Diffstat (limited to 'stmhal/modpyb.c')
-rw-r--r--stmhal/modpyb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c
index c32a8cfc3..dcc0f3da1 100644
--- a/stmhal/modpyb.c
+++ b/stmhal/modpyb.c
@@ -589,8 +589,8 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = {
#if defined(MICROPY_HW_LED1)
{ MP_OBJ_NEW_QSTR(MP_QSTR_LED), (mp_obj_t)&pyb_led_type },
#endif
-#if !defined(STM32F7) // Temp hack
{ MP_OBJ_NEW_QSTR(MP_QSTR_I2C), (mp_obj_t)&pyb_i2c_type },
+#if !defined(STM32F7) // Temp hack
{ MP_OBJ_NEW_QSTR(MP_QSTR_SPI), (mp_obj_t)&pyb_spi_type },
#endif
{ MP_OBJ_NEW_QSTR(MP_QSTR_UART), (mp_obj_t)&pyb_uart_type },