Skip to content

Commit eecf1ed

Browse files
Desvauxm-stcarlescufi
authored andcommitted
tests: drivers: i2c: i2c_target_api add nucleo_f429zi
Adds necessary overlay nucleo_f429zi in i2c_target_api test case to enables the board. Signed-off-by: Marc Desvaux <[email protected]>
1 parent 4c977c5 commit eecf1ed

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_I2C_STM32_INTERRUPT=y
2+
CONFIG_I2C_VIRTUAL=n
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
/* I2C bus pins are exposed on the ST morpho header.
4+
*
5+
* Bus SDA SCL
6+
* Pin Hdr Pin Hdr
7+
* i2c1 PB9 CN7:4 PB8 CN7:2
8+
* i2c2 PB11 CN10:34 PB10 CN10:32
9+
*
10+
* Short Pin PB9 to PB11, and PB8 to PB10, for the test to pass.
11+
*/
12+
13+
&i2c1 {
14+
eeprom0: eeprom@54 {
15+
compatible = "zephyr,i2c-target-eeprom";
16+
reg = <0x54>;
17+
size = <1024>;
18+
};
19+
};
20+
21+
&i2c2 {
22+
eeprom1: eeprom@56 {
23+
compatible = "zephyr,i2c-target-eeprom";
24+
reg = <0x56>;
25+
size = <1024>;
26+
};
27+
};

0 commit comments

Comments
 (0)