Skip to content

Commit

Permalink
tests: drivers: i2c: i2c_target_api add nucleo_f746zg
Browse files Browse the repository at this point in the history
Adds necessary overlay nucleo_f746zg in i2c_target_api test case
to enables the board.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
  • Loading branch information
Desvauxm-st authored and fabiobaltieri committed Jun 27, 2023
1 parent e86fc5f commit abc5f4c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/drivers/i2c/i2c_target_api/boards/nucleo_f746zg.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_I2C_STM32_INTERRUPT=y
CONFIG_I2C_VIRTUAL=n
30 changes: 30 additions & 0 deletions tests/drivers/i2c/i2c_target_api/boards/nucleo_f746zg.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/

/* I2C bus pins are exposed on the ST morpho header.
*
* Bus SDA SCL
* Pin Hdr Pin Hdr
* i2c1 PB9 CN7:4 PB8 CN7:2
* i2c2 PB11 CN10:34 PB10 CN10:32
*
* Short Pin PB9 to PB11, and PB8 to PB10, for the test to pass.
*/

&i2c1 {
eeprom0: eeprom@54 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>;
size = <1024>;
};
};

&i2c2 {
eeprom1: eeprom@56 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x56>;
size = <1024>;
};
};

0 comments on commit abc5f4c

Please sign in to comment.