Skip to content
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

Static alloc RFC #2386

Open
wants to merge 11 commits into
base: dev/drivers_static_alloc
Choose a base branch
from
Open

Conversation

CiprianRegus
Copy link
Contributor

Pull Request Description

Please replace this with a detailed description and motivation of the changes.
You can tick the checkboxes below with an 'x' between square brackets or just check them after publishing the PR.
If this PR contains a breaking change, list dependent PRs and try to push all related PRs at the same time.

PR Type

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

PR Checklist

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

Converting to static allocation requires some config options in order to
set the memory size. Set their default value.

Signed-off-by: Ciprian Regus <[email protected]>
Define static I2C and SPI descriptors to be used when
CONFIG_DYNAMIC_ALLOC == 0.

Signed-off-by: Ciprian Regus <[email protected]>
Allow to set the configuration for the SDA and SCL pins. This is useful
since the signals for an I2C instance can be mapped to several different
pins. This is a temporary solution just for I2C.

Signed-off-by: Ciprian Regus <[email protected]>
Use the ADXL355 and ADT7420 drivers with CONFIG_DYNAMIC_ALLOC = 0.
Meant to be run on the APARD32690.

Signed-off-by: Ciprian Regus <[email protected]>
This is not complete, the interrupt layer also has to be converted to
static allocation.

Signed-off-by: Ciprian Regus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant