Skip to content

Commit 7632f7a

Browse files
author
Erwan GOURIOU
committed
[dev_asynch_i2c] Enable asynch I2C on NUCLEO_F411RE
Dev Asynch I2c One limitation linked to HAL bug: Master RX(Repeated Start) KO
1 parent 6304980 commit 7632f7a

File tree

2 files changed

+377
-126
lines changed

2 files changed

+377
-126
lines changed

hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,17 @@ struct analogin_s {
6262

6363
struct i2c_s {
6464
I2CName i2c;
65+
I2C_HandleTypeDef handle;
66+
IRQn_Type event_i2cIRQ;
67+
IRQn_Type error_i2cIRQ;
6568
uint32_t slave;
69+
#if DEVICE_I2C_ASYNCH
70+
uint32_t event;
71+
uint32_t address;
72+
uint32_t stop;
73+
uint32_t available_events;
74+
uint32_t XferOperation;
75+
#endif
6676
};
6777

6878
#include "common_objects.h"

0 commit comments

Comments
 (0)