Skip to content

Commit e73930f

Browse files
author
Erwan GOURIOU
committed
[dev_asynch_i2c] Extend asynch I2C to STM32F4 boards
Move i2c_s to common_objects.h Introduce I2C Master/Slave asynch test Test I2C asynch master/slave on STM32F4 boards
1 parent 1865655 commit e73930f

File tree

22 files changed

+185
-102
lines changed

22 files changed

+185
-102
lines changed

hal/targets.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@
782782
"inherits": ["Target"],
783783
"progen": {"target": "nucleo-f401re"},
784784
"detect_code": ["0720"],
785-
"device_has": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
785+
"device_has": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
786786
"release_versions": ["2", "5"]
787787
},
788788
"NUCLEO_F410RB": {
@@ -795,7 +795,7 @@
795795
"progen": {"target": "nucleo-f410rb"},
796796
"macros": ["MBEDTLS_ENTROPY_HARDWARE_ALT"],
797797
"detect_code": ["0740"],
798-
"device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
798+
"device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
799799
"release_versions": ["2", "5"]
800800
},
801801
"NUCLEO_F411RE": {
@@ -831,7 +831,7 @@
831831
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
832832
"progen": {"target": "nucleo-f429zi"},
833833
"macros": ["MBEDTLS_ENTROPY_HARDWARE_ALT", "DEVICE_RTC_LSI=1"],
834-
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
834+
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
835835
"detect_code": ["0796"],
836836
"features": ["IPV4"],
837837
"release_versions": ["2", "5"]
@@ -845,7 +845,7 @@
845845
"inherits": ["Target"],
846846
"progen": {"target": "nucleo-f446re"},
847847
"detect_code": ["0777"],
848-
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
848+
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
849849
"release_versions": ["2", "5"]
850850
},
851851
"NUCLEO_F446ZE": {
@@ -857,8 +857,8 @@
857857
"inherits": ["Target"],
858858
"progen": {"target": "nucleo-f446ze"},
859859
"detect_code": ["0778"],
860-
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
861-
"release_versions": ["2", "5"]
860+
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
861+
"release_versions": ["2"]
862862
},
863863

864864
"B96B_F446VE": {
@@ -1071,7 +1071,7 @@
10711071
"macros": ["MBEDTLS_ENTROPY_HARDWARE_ALT", "DEVICE_RTC_LSI=1"],
10721072
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
10731073
"progen": {"target": "disco-f429zi"},
1074-
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
1074+
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
10751075
"release_versions": ["2", "5"]
10761076
},
10771077
"DISCO_F469NI": {
@@ -1084,7 +1084,7 @@
10841084
"macros": ["MBEDTLS_ENTROPY_HARDWARE_ALT"],
10851085
"progen": {"target": "disco-f469ni"},
10861086
"detect_code": ["0788"],
1087-
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
1087+
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
10881088
"release_versions": ["2", "5"]
10891089
},
10901090
"DISCO_L053C8": {

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
#include "common_objects.h"
8883
#include "gpio_object.h"
8984

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
struct can_s {
8883
CANName can;
8984
int index; // Used by irq

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ struct spi_s {
7474
PinName pin_ssel;
7575
};
7676

77-
struct i2c_s {
78-
I2CName i2c;
79-
uint32_t slave;
80-
};
81-
8277
#include "common_objects.h"
8378
#include "gpio_object.h"
8479

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
#include "common_objects.h"
8883
#include "gpio_object.h"
8984

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
struct can_s {
8883
CANName can;
8984
int index;

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
struct can_s {
8883
CANName can;
8984
int index;

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ struct spi_s {
7474
PinName pin_ssel;
7575
};
7676

77-
struct i2c_s {
78-
I2CName i2c;
79-
uint32_t slave;
80-
};
81-
8277
#include "common_objects.h"
8378
#include "gpio_object.h"
8479

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ struct spi_s {
7474
PinName pin_ssel;
7575
};
7676

77-
struct i2c_s {
78-
I2CName i2c;
79-
uint32_t slave;
80-
};
81-
8277
#include "common_objects.h"
8378
#include "gpio_object.h"
8479

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
#include "common_objects.h"
8883
#include "gpio_object.h"
8984

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ struct spi_s {
7474
PinName pin_ssel;
7575
};
7676

77-
struct i2c_s {
78-
I2CName i2c;
79-
uint32_t slave;
80-
};
81-
8277
#include "common_objects.h"
8378
#include "gpio_object.h"
8479

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ struct spi_s {
7474
PinName pin_ssel;
7575
};
7676

77-
struct i2c_s {
78-
I2CName i2c;
79-
uint32_t slave;
80-
};
81-
8277
#include "common_objects.h"
8378
#include "gpio_object.h"
8479

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
#include "common_objects.h"
8883
#include "gpio_object.h"
8984

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
struct can_s {
8883
CANName can;
8984
int index;

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
struct can_s {
8883
CANName can;
8984
int index;

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
struct can_s {
8883
CANName can;
8984
int index;

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ struct spi_s {
7979
PinName pin_ssel;
8080
};
8181

82-
struct i2c_s {
83-
I2CName i2c;
84-
uint32_t slave;
85-
};
86-
8782
#include "common_objects.h"
8883
#include "gpio_object.h"
8984

0 commit comments

Comments
 (0)