tests: drivers: i2c: i2c_target_api add stm32f3_disco
Adds necessary overlay stm32f3_disco in i2c_target_api test case to enables the board. Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
This commit is contained in:
parent
56dd8f90cd
commit
c19ba8ffe9
@ -0,0 +1,2 @@
|
||||
CONFIG_I2C_STM32_INTERRUPT=y
|
||||
CONFIG_I2C_VIRTUAL=n
|
||||
@ -0,0 +1,30 @@
|
||||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
/* I2C bus pins are exposed on the ST P2 connector.
|
||||
*
|
||||
* Bus SDA SCL
|
||||
* Pin Hdr Pin Hdr
|
||||
* i2c1 PB7 P2:21 PB6 P2:22
|
||||
* i2c2 PA10 P2:43 PA9 P2:44
|
||||
*
|
||||
* Short Pin PB7 to PA10, and PB6 to PA9, 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>;
|
||||
};
|
||||
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user