Skip to content

Commit 9798606

Browse files
gautierg-stkartben
authored andcommitted
drivers: i2c: stm32: fix some macro name
Some macros haven't been properly renamed in previous commits. Fixes the wrong names that caused compilation errors. Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
1 parent f6c386d commit 9798606

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

drivers/i2c/i2c_ll_stm32.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ static void i2c_stm32_irq_config_func_##index(const struct device *dev) \
197197
}
198198

199199
#else /* CONFIG_I2C_STM32_INTERRUPT */
200-
#define STM32_I2C_IRQ_HANDLER_DECL(index)
201-
#define STM32_I2C_IRQ_HANDLER_FUNCTION(index)
202-
#define STM32_I2C_IRQ_HANDLER(index)
200+
#define I2C_STM32_IRQ_HANDLER_DECL(index)
201+
#define I2C_STM32_IRQ_HANDLER_FUNCTION(index)
202+
#define I2C_STM32_IRQ_HANDLER(index)
203203
#endif /* CONFIG_I2C_STM32_INTERRUPT */
204204

205205
#endif /* ZEPHYR_DRIVERS_I2C_I2C_LL_STM32_H_ */

drivers/i2c/i2c_ll_stm32_v2.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ static inline int msg_done(const struct device *dev,
842842
return -EIO;
843843
}
844844
if ((k_uptime_get() - start_time) >
845-
STM32_I2C_TRANSFER_TIMEOUT_MSEC) {
845+
I2C_STM32_TRANSFER_TIMEOUT_MSEC) {
846846
return -ETIMEDOUT;
847847
}
848848
}
@@ -851,7 +851,7 @@ static inline int msg_done(const struct device *dev,
851851
LL_I2C_GenerateStopCondition(i2c);
852852
while (!LL_I2C_IsActiveFlag_STOP(i2c)) {
853853
if ((k_uptime_get() - start_time) >
854-
STM32_I2C_TRANSFER_TIMEOUT_MSEC) {
854+
I2C_STM32_TRANSFER_TIMEOUT_MSEC) {
855855
return -ETIMEDOUT;
856856
}
857857
}
@@ -886,7 +886,7 @@ static int i2c_stm32_msg_write(const struct device *dev, struct i2c_msg *msg,
886886
}
887887

888888
if ((k_uptime_get() - start_time) >
889-
STM32_I2C_TRANSFER_TIMEOUT_MSEC) {
889+
I2C_STM32_TRANSFER_TIMEOUT_MSEC) {
890890
return -ETIMEDOUT;
891891
}
892892
}
@@ -917,7 +917,7 @@ static int i2c_stm32_msg_read(const struct device *dev, struct i2c_msg *msg,
917917
return -EIO;
918918
}
919919
if ((k_uptime_get() - start_time) >
920-
STM32_I2C_TRANSFER_TIMEOUT_MSEC) {
920+
I2C_STM32_TRANSFER_TIMEOUT_MSEC) {
921921
return -ETIMEDOUT;
922922
}
923923
}

0 commit comments

Comments
 (0)