Skip to content

Commit 2ed3e8b

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 34a7393 commit 2ed3e8b

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
@@ -76,7 +76,17 @@ struct spi_s {
7676

7777
struct i2c_s {
7878
I2CName i2c;
79+
I2C_HandleTypeDef handle;
80+
IRQn_Type event_i2cIRQ;
81+
IRQn_Type error_i2cIRQ;
7982
uint32_t slave;
83+
#if DEVICE_I2C_ASYNCH
84+
uint32_t event;
85+
uint32_t address;
86+
uint32_t stop;
87+
uint32_t available_events;
88+
uint32_t XferOperation;
89+
#endif
8090
};
8191

8292
#include "common_objects.h"

0 commit comments

Comments
 (0)