Skip to content

Conversation

MarcoSchulerHelbling
Copy link

@MarcoSchulerHelbling MarcoSchulerHelbling commented Oct 9, 2025

Hi folks

First time contributor here.

This PR adds support for the ST lsm6dsr inertial measurement unit (IMU). A sample is included as well.

Question: I copied the files lsm6dsr_i2c.c, lsm6dsr_spi.c and lsm6dsr_trigger.c from drivers/sensor/st/lsm6dsl, which creates redundancies. Is that okey or is there a way to share such code?

--
Best regards,
Marco

Copy link

github-actions bot commented Oct 9, 2025

Hello @MarcoSchulerHelbling, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

This driver adds initial support for the ST lsm6dsr IMU.

Supported interface are I2C and SPI.

It supports polling measurement mode. Setting/modifying attributes for
output data rate (ODR) and full scale range (FS) is supported too.

Origin: Original

Signed-off-by: Marco Schuler <[email protected]>
Add support for triggered measurement mode. Triggers can be passed to the
application either via global work queue or a dedicated task within the
driver.

Origin: Original

Signed-off-by: Marco Schuler <[email protected]>
This sample demonstrates the usage for ST lsm6dsr inertial measurement
unit (IMU) driver.

Origin: Original

Signed-off-by: Marco Schuler <[email protected]>
Copy link

sonarqubecloud bot commented Oct 9, 2025

Please retry analysis of this Pull-Request directly on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants