Skip to content

Commit 3d00b36

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 a7838fd commit 3d00b36

File tree

22 files changed

+184
-101
lines changed

22 files changed

+184
-101
lines changed

hal/targets.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@
766766
"inherits": ["Target"],
767767
"progen": {"target": "nucleo-f401re"},
768768
"detect_code": ["0720"],
769-
"device_has": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
769+
"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"],
770770
"release_versions": ["2", "5"]
771771
},
772772
"NUCLEO_F410RB": {
@@ -779,7 +779,7 @@
779779
"progen": {"target": "nucleo-f410rb"},
780780
"macros": ["MBEDTLS_ENTROPY_HARDWARE_ALT"],
781781
"detect_code": ["0740"],
782-
"device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
782+
"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"],
783783
"release_versions": ["2", "5"]
784784
},
785785
"NUCLEO_F411RE": {
@@ -815,7 +815,7 @@
815815
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
816816
"progen": {"target": "nucleo-f429zi"},
817817
"macros": ["MBEDTLS_ENTROPY_HARDWARE_ALT"],
818-
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
818+
"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"],
819819
"detect_code": ["0796"],
820820
"features": ["IPV4"],
821821
"release_versions": ["2", "5"]
@@ -829,7 +829,7 @@
829829
"inherits": ["Target"],
830830
"progen": {"target": "nucleo-f446re"},
831831
"detect_code": ["0777"],
832-
"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"],
832+
"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"],
833833
"release_versions": ["2", "5"]
834834
},
835835
"NUCLEO_F446ZE": {
@@ -841,7 +841,7 @@
841841
"inherits": ["Target"],
842842
"progen": {"target": "nucleo-f446ze"},
843843
"detect_code": ["0778"],
844-
"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"],
844+
"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"],
845845
"release_versions": ["2"]
846846
},
847847

@@ -1053,7 +1053,7 @@
10531053
"macros": ["MBEDTLS_ENTROPY_HARDWARE_ALT"],
10541054
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
10551055
"progen": {"target": "disco-f429zi"},
1056-
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
1056+
"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"],
10571057
"release_versions": ["2", "5"]
10581058
},
10591059
"DISCO_F469NI": {
@@ -1066,7 +1066,7 @@
10661066
"macros": ["MBEDTLS_ENTROPY_HARDWARE_ALT"],
10671067
"progen": {"target": "disco-f469ni"},
10681068
"detect_code": ["0788"],
1069-
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
1069+
"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"],
10701070
"release_versions": ["2", "5"]
10711071
},
10721072
"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)