tests: drivers: i2c: slave: added Raspberry Pi Pico board
added Raspberry Pi Pico for testing it as I2C slave Signed-off-by: Andrei-Edward Popa <andrei_edward.popa@upb.ro>
This commit is contained in:
parent
681a57cd47
commit
34d921b00b
3 changed files with 32 additions and 1 deletions
2
tests/drivers/i2c/i2c_slave_api/boards/rpi_pico.conf
Normal file
2
tests/drivers/i2c/i2c_slave_api/boards/rpi_pico.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
CONFIG_I2C=y
|
||||
CONFIG_I2C_SLAVE=y
|
29
tests/drivers/i2c/i2c_slave_api/boards/rpi_pico.overlay
Normal file
29
tests/drivers/i2c/i2c_slave_api/boards/rpi_pico.overlay
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright (c) 2022 Andrei-Edward Popa
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&i2c0 {
|
||||
eeprom0: eeprom@54 {
|
||||
compatible = "atmel,at24";
|
||||
reg = <0x54>;
|
||||
label = "EEPROM_0";
|
||||
size = <1024>;
|
||||
pagesize = <16>;
|
||||
address-width = <8>;
|
||||
timeout = <5>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
eeprom1: eeprom@56 {
|
||||
compatible = "atmel,at24";
|
||||
reg = <0x56>;
|
||||
label = "EEPROM_1";
|
||||
size = <1024>;
|
||||
pagesize = <16>;
|
||||
address-width = <8>;
|
||||
timeout = <5>;
|
||||
};
|
||||
};
|
|
@ -7,6 +7,6 @@ common:
|
|||
|
||||
tests:
|
||||
drivers.i2c_slave.dual_role:
|
||||
platform_allow: nucleo_f091rc stm32f072b_disco nucleo_g071rb
|
||||
platform_allow: nucleo_f091rc stm32f072b_disco nucleo_g071rb rpi_pico
|
||||
extra_configs:
|
||||
- CONFIG_APP_DUAL_ROLE_I2C=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue