File tree Expand file tree Collapse file tree 6 files changed +44
-0
lines changed
tests/drivers/build_all/smbus Expand file tree Collapse file tree 6 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+
3+ cmake_minimum_required (VERSION 3.20.0)
4+ find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
5+ project (build_all)
6+
7+ FILE (GLOB app_sources src/*.c)
8+ target_sources (app PRIVATE ${app_sources} )
Original file line number Diff line number Diff line change 1+ CONFIG_I2C=y
Original file line number Diff line number Diff line change 1+ /*
2+ * SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
3+ * SPDX-License-Identifier: Apache-2.0
4+ */
5+
6+ &i2c1 {
7+ status = "okay";
8+ };
9+
10+ &smbus1 {
11+ i2c = <&i2c1>;
12+ status = "okay";
13+ };
Original file line number Diff line number Diff line change 1+ CONFIG_TEST=y
2+ CONFIG_TEST_USERSPACE=y
3+ CONFIG_SMBUS=y
Original file line number Diff line number Diff line change 1+ /*
2+ * SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
3+ * SPDX-License-Identifier: Apache-2.0
4+ */
5+
6+ int main (void )
7+ {
8+ return 0 ;
9+ }
Original file line number Diff line number Diff line change 1+ common :
2+ build_only : true
3+ tags :
4+ - drivers
5+ - i2c
6+ - smbus
7+ tests :
8+ drivers.smbus.build.stm32 :
9+ platform_allow :
10+ - nucleo_g071rb
You can’t perform that action at this time.
0 commit comments