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
drivers/sensors: Remove unnecessary heap allocation for bmi270 #10542
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 shouldn't be merged. Some chips can't do DMA transfer from FLASH and therefore it is necessary to transfer the configuration file to RAM (all Nordic chips).
We can make this configurable from Kconfig - send from heap or not.
@raiden00pl |
Yes, that's a mistake. We should |
Allow to transfer the BMI270 configuration data directly, and provide an option to use the heap memory if it cannot transfer directly.
c727e2e
to
8159e10
Compare
I added a Kconfig to use heap memory or not. please review. |
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.
lgtm
Summary
Remove temporary heap allocation and fix memory leak.
Add spresense board-specific driver for bmi270.
Impact
bmi270 sensor
Testing