no-OS icon indicating copy to clipboard operation
no-OS copied to clipboard

drivers: accel: Add ADXL371 driver

Open Brandon-Hurst opened this issue 3 months ago • 1 comments

Pull Request Description

Add a driver for the ADXL371. This accelerometer is designed for impact / shock detection applications while utilizing very low power.

Testing performed uses a project in an external build system which brings in No-OS as a submodule. This project will be released separately dependent on merging this PR. The relevant source files are attached.

adxl371_noos_main.zip

The .rst document inside the driver folder documents how to utilize the shock detection features, as well as the recommended FIFO configurations for different use-cases for the device such as capturing single peaks, sequences of peaks, or complete peak events. Most of the relevant code in this document is taken directly from the example project.

PR Type

  • [ ] Bug fix (change that fixes an issue)
  • [x] New feature (change that adds new functionality)
  • [ ] Breaking change (has dependencies in other repos or will cause CI to fail)

PR Checklist

  • [x] I have followed the Coding style guidelines
  • [x] I have complied with the Submission Checklist
  • [x] I have performed a self-review of the changes
  • [x] I have commented my code, at least hard-to-understand parts
  • [x] I have build all projects affected by the changes in this PR
  • [x] I have tested in hardware affected projects, at the relevant boards
  • [x] I have signed off all commits from this PR
  • [x] I have updated the documentation (wiki pages, ReadMe etc), if applies

Brandon-Hurst avatar Sep 29 '25 19:09 Brandon-Hurst

Updated to use 2 new commits. These are re-tested on my side and work. I'm still seeing a issue with the CI documentation build, but it's pretty cryptic. Doesn't appear to be anything on the PR (the log itself shows the docs for ADXL371 build ok). Could I get some help resolving this?

Traceback
=========

      File "/home/vsts/.local/lib/python3.12/site-packages/adi_doctools/directive/node.py", line 18, in visit
        attributes.pop("backrefs")
    KeyError: 'backrefs'


The full traceback has been saved in:
/tmp/sphinx-err-c0lixoxf.log

To report this error to the developers, please open an issue at <[https://github.com/sphinx-doc/sphinx/issues/>.](https://github.com/sphinx-doc/sphinx/issues/%3E.) Thanks!
Please also report this if it was a user error, so that a better error message can be provided next time.
make: *** [Makefile:13: html] Error 2

Brandon-Hurst avatar Dec 02 '25 00:12 Brandon-Hurst