Skip to content

Commit 34b756f

Browse files
erian747jhedberg
authored andcommitted
drivers: i2c_stm32_v2: Rework interrupt handler
- Rework transaction flow to better match reference manual and errata sheet for STM32 I2Cv2 peripheral - Handle message transactions larger than 255 bytes in isr - Combine stm32_i2c_msg_write and stm32_i2c_msg_read into one common function stm32_i2c_irq_xfer when using interrupts Signed-off-by: Erik Andersson <[email protected]>
1 parent 066bb5f commit 34b756f

File tree

2 files changed

+289
-49
lines changed

2 files changed

+289
-49
lines changed

drivers/i2c/i2c_ll_stm32.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ struct i2c_stm32_data {
110110
unsigned int is_arlo;
111111
unsigned int is_nack;
112112
unsigned int is_err;
113+
bool continue_in_next;
113114
struct i2c_msg *msg;
114115
unsigned int len;
115116
uint8_t *buf;

0 commit comments

Comments
 (0)