-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Adxl345 refac and FIFO #97500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Rubusch
wants to merge
42
commits into
zephyrproject-rtos:main
Choose a base branch
from
Rubusch:adxl345-fifo-v0.36
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Adxl345 refac and FIFO #97500
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
182bc8f
sensor: adxl345: DTS: add binding for FIFO interrupts
Rubusch 655870d
sensor: adxl345: DTS: set minimum watermark to 2
Rubusch e4ce8f5
sensor: adxl345: DTS: adjust comment for interrupt binding
Rubusch eaf2b48
sensor: adxl345: set minimum watermark to 2
Rubusch f2400ba
sensor: adxl345: rename ADXL345_INT_ENABLE to ADXL345_INT_ENABLE_REG
Rubusch baf2957
sensor: adxl345: rename ADXL345_INT_MAP to ADXL345_INT_MAP_REG
Rubusch 05ef6ae
sensor: adxl345: rename ADXL345_INT_SOURCE to ADXL345_INT_SOURCE_REG
Rubusch 8901286
sensor: adxl345: rename SAMPLE_SIZE to ADXL345_FIFO_SAMPLE_SIZE
Rubusch d120c48
sensor: adxl345: rename SAMPLE_MASK to ADXL345_FIFO_SAMPLE_MSK
Rubusch d075536
sensor: adxl345: rename SAMPLE_NUM to ADXL345_FIFO_CTL_SAMPLES_MSK
Rubusch 6928939
sensor: adxl345: change type of member is_full_res
Rubusch b634780
sensor: adxl345: change type of member fifo_samples
Rubusch c742a13
sensor: adxl345: fix function adxl345_write_mask()
Rubusch 013925b
sensor: adxl345: remove unused adxl345_set_op_mode()
Rubusch d8a9f58
sensor: adxl345: remove unused field op_mode
Rubusch c177965
sensor: adxl345: control measurement by a dedicated function
Rubusch adcbc72
sensor: adxl345: split function get_status()
Rubusch e6718a8
sensor: adxl345: refactor both interrupt lines configurable in device…
Rubusch da74339
sensor: adxl345: rename local status1 to status
Rubusch 012004e
sensor: adxl345: refactor ODR initialization
Rubusch a5248fb
sensor: adxl345: init the ADXL345_DATA_FORMAT_REG register
Rubusch 917e51e
sensor: adxl345: fix FIFO default configuration
Rubusch 4b6e074
sensor: adxl345: introduce ADXL345_REG_DATA_XYZ_REGS
Rubusch 8014790
sensor: adxl345: rework FIFO mode and interrupt initialization
Rubusch 6ccabb0
sensor: adxl345: remove unused field fifo_config from the const config
Rubusch 4f3204a
sensor: adxl345: remove unnecessary loop check
Rubusch a64c486
sensor: adxl345: simplify INT register field defines
Rubusch 2c2df72
sensor: adxl345: simplify event handler registration
Rubusch ccea5a0
sensor: adxl345: fix fetch and get to correctly read the FIFO samples
Rubusch 23189cd
sensor: adxl345: reorganize stream code
Rubusch 334077b
sensor: adxl345: remove pointless variable fifo_total_bytes
Rubusch 4f92ab8
sensor: adxl345: use a concise naming for fifo related variables
Rubusch 7730503
sensor: adxl345: add watermark configuration through app attribute
Rubusch 6a4d044
sensor: adxl345: rename status1 to reg_int_source
Rubusch e3e53db
sensor: adxl345: streamline error handling
Rubusch 00a8fe7
sensor: adxl345: provide generic bus access API
Rubusch 98ec77b
sensor: adxl345: factor out initialization of the stream header
Rubusch d45b662
sensor: adxl345: factor out consumption of CQEs
Rubusch d0cd81f
sensor: adxl345: move streaming checks to separate function
Rubusch a2b8770
sensor: adxl345: rework flushing the fifo
Rubusch f6b7a52
sensor: adxl345: cover watermark and overrun as sensor events
Rubusch 29365ff
sensor: adxl345: distinguish the stream handler from trigger
Rubusch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things:
zephyr/drivers/sensor/adi/adxl345/adxl345.c
Lines 532 to 539 in 6b8fcae