-
Notifications
You must be signed in to change notification settings - Fork 363
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
add driver for ADXL345 sensor #829
Conversation
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.
This looks good to me. I see you enable interrupt sources on the chip, but don't set up a pin for IRQ (aka hal_gpi_irqXXX stuff). Any plans to add this later?
|
||
#include "defs/error.h" | ||
#include "os/os.h" | ||
#include "sysinit/sysinit.h" |
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.
Move this line a bit higher. There are syscfg settings which impact how includes from os/os.h are read in.
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.
I will sort the requested changes. I should also be able to add in IRQ bits, I mostly haven't done that yet as I wasn't sure how to implement it yet.
Sounds good. Support for thresholds and tap detection are quite useful in the Sensor API. |
No description provided.