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

ieee802154: Remove buffers from initialize() functions #3993

Merged
merged 4 commits into from
May 17, 2024

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented May 16, 2024

Pull Request Overview

This pull request updates the hil::radio:Radio interface and the mac interface to not pass buffers to capsules via the initialize() function and instead use the conventional method of passing them in the new() constructor.

I think this is just an artifact of not knowing exactly which approach would work best at the time.

This also enables some improvements to the rf233 component and initialization in the imix board.

Testing Strategy

travis

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

These buffers should be passed to the object directly as not all users
are likely to want the same buffers (and this is in fact true today).
@github-actions github-actions bot added nrf Change pertains to the nRF5x family of MCUs. HIL This affects a Tock HIL interface. component WG-Network In the purview of the Network working group. labels May 16, 2024
Buffer should just be passed to the object when it is created, not on
initialization.
jrvanwhy
jrvanwhy previously approved these changes May 17, 2024
boards/components/src/rf233.rs Outdated Show resolved Hide resolved
ppannuto
ppannuto previously approved these changes May 17, 2024
@ppannuto ppannuto enabled auto-merge May 17, 2024 17:34
jrvanwhy
jrvanwhy previously approved these changes May 17, 2024
@ppannuto ppannuto dismissed stale reviews from jrvanwhy and themself via 2390dc4 May 17, 2024 20:45
@ppannuto ppannuto added this pull request to the merge queue May 17, 2024
Merged via the queue into master with commit b2a3fdf May 17, 2024
18 checks passed
@ppannuto ppannuto deleted the hil-radio-init-buffers branch May 17, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component HIL This affects a Tock HIL interface. nrf Change pertains to the nRF5x family of MCUs. WG-Network In the purview of the Network working group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants