aboutsummaryrefslogtreecommitdiff
path: root/stmhal
diff options
context:
space:
mode:
authorDamien George2017-08-02 13:42:34 +1000
committerDamien George2017-08-02 13:42:34 +1000
commit0f12082f5b7d957d920bce4e40ee589abce84e38 (patch)
treed46bba868566636b3b7825dfdebc31da88725357 /stmhal
parentee0452509785faa41a3e15a3646130e35f3556cd (diff)
py,extmod,stmhal: Use "static inline" for funcs that should be inline.
"STATIC inline" can expand to "inline" if STATIC is defined to nothing, and this case can lead to link errors.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/i2c.c b/stmhal/i2c.c
index f102fd0f2..3fcce327f 100644
--- a/stmhal/i2c.c
+++ b/stmhal/i2c.c
@@ -513,7 +513,7 @@ STATIC HAL_StatusTypeDef i2c_wait_dma_finished(I2C_HandleTypeDef *i2c, uint32_t
/******************************************************************************/
/* MicroPython bindings */
-STATIC inline bool in_master_mode(pyb_i2c_obj_t *self) { return self->i2c->Init.OwnAddress1 == PYB_I2C_MASTER_ADDRESS; }
+static inline bool in_master_mode(pyb_i2c_obj_t *self) { return self->i2c->Init.OwnAddress1 == PYB_I2C_MASTER_ADDRESS; }
STATIC void pyb_i2c_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
pyb_i2c_obj_t *self = self_in;