zephyr/tests/subsys/emul/app.overlay
Abe Levkoy 1370dfc7f4 emul: Add EMUL_DT_GET
Implement EMUL_DT_GET, analogous to DEVICE_DT_GET. Add a test.

Signed-off-by: Abe Levkoy <alevkoy@google.com>
2022-08-17 15:47:52 +00:00

20 lines
417 B
Plaintext

/*
* Copyright 2022 Google LLC
*
* SPDX-License-Identifier: Apache-2.0
*
* Application overlay for testing the emul.h API.
*
* Names in this file should be chosen in a way that won't conflict
* with real-world devicetree nodes, to allow these tests to run on
* (and be extended to test) real hardware.
*/
&i2c0 {
test_bmi: bmi@68 {
compatible = "bosch,bmi160";
reg = <0x68>;
status = "okay";
};
};