forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,021 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright (c) 2023 Google LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: Accelerometer based lid angle virtual sensor | ||
|
||
compatible: "sensing,accel-based-angle" | ||
|
||
include: [sensor-device.yaml, base.yaml] | ||
|
||
properties: | ||
plane0: | ||
type: phandle | ||
required: true | ||
description: | | ||
Node owning the sensing_sensor_info for the first plane's accelerometer | ||
plane1: | ||
type: phandle | ||
required: true | ||
description: | | ||
Node owning the sensing_sensor_info for the second plane's accelerometer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (c) 2023 Google LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: Emulated virtual sensor | ||
|
||
compatible: "sensing,emul" | ||
|
||
include: [sensor-device.yaml, base.yaml] | ||
|
||
properties: | ||
|
||
sensor-types: | ||
type: array | ||
required: true | ||
description: | | ||
One or more sensor data types that are provided by this device. For | ||
example, a 'dev' pointing to a bmi160 may report accel/gyro/die_temp or | ||
any subset of those types. | ||
rotation-matrix: | ||
type: array | ||
description: | | ||
3x3 matrix to rotation x, y, and z axes. | ||
In order to make application logic agnostic to how the device was placed | ||
on the board, it's possible to enter the rotation matrix which will be | ||
applied to every sample produced by this sensor. The final orientation | ||
will be: | ||
* X-axis is horizontal and positive toward the right | ||
* Y-axis is vertical and positive toward the top | ||
* Z-axis is depth and positive toward the user | ||
If not provided, the rotation matrix will be the identity matrix. | ||
Otherwise, the following will be used: | ||
+- -+ +- -+ +- -+ | ||
| v1 v2 v3 | | sensor_X | = | X | | ||
| v4 v5 v6 | * | sensor_Y | = | Y | | ||
| v7 v8 v9 | | sensor_Z | = | Z | | ||
+- -+ +- -+ +- -+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Copyright (c) 2023 Google LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
CONFIG_SPI_RTIO=y | ||
CONFIG_CMSIS_DSP=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#if defined(CONFIG_SENSING) | ||
ITERABLE_SECTION_RAM(sensing_connection, 4) | ||
#endif /* CONFIG_SENSING */ |
Oops, something went wrong.