summaryrefslogtreecommitdiff
path: root/ports/stm32/machine_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/machine_i2c.c')
-rw-r--r--ports/stm32/machine_i2c.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ports/stm32/machine_i2c.c b/ports/stm32/machine_i2c.c
index 14dd88b78..31defcb17 100644
--- a/ports/stm32/machine_i2c.c
+++ b/ports/stm32/machine_i2c.c
@@ -32,11 +32,10 @@
#include "py/mperrno.h"
#include "extmod/machine_i2c.h"
#include "i2c.h"
+#include "modmachine.h"
#if MICROPY_HW_ENABLE_HW_I2C
-STATIC const mp_obj_type_t machine_hard_i2c_type;
-
#define I2C_POLL_DEFAULT_TIMEOUT_US (50000) // 50ms
#if defined(STM32F0) || defined(STM32F4) || defined(STM32F7)
@@ -266,7 +265,7 @@ STATIC const mp_machine_i2c_p_t machine_hard_i2c_p = {
.transfer = machine_hard_i2c_transfer,
};
-STATIC const mp_obj_type_t machine_hard_i2c_type = {
+const mp_obj_type_t machine_hard_i2c_type = {
{ &mp_type_type },
.name = MP_QSTR_I2C,
.print = machine_hard_i2c_print,