-
Notifications
You must be signed in to change notification settings - Fork 3k
Clean-up S2LP driver configuration #12951
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
Conversation
@MarceloSalazar, thank you for your changes. |
CI started |
Test run: FAILEDSummary: 1 of 7 test jobs failed Failed test jobs:
|
@MarceloSalazar wisun tests failing - using most probably something that this PR changes |
@0xc0170 correct - there is a dependency and wisun tests will have to be updated as indicated in the migration section |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
Rebased and fixed issues |
Test run: FAILEDSummary: 1 of 7 test jobs failed Failed test jobs:
|
The error is expected - there is a need to migrate to use the Mbed configuration as indicated in the guide above.
Change needed here: https://github.com/ARMmbed/nanostack-border-router/blob/master/drivers/rf_wrapper.cpp#L27 |
I've added support for legacy pin configuration, so the nanostack-border-router app continues to work as it's. It's possible to override the config using mbed_app.json as shown in the description above. Please re-test. |
CI restarted |
Test run: SUCCESSSummary: 7 of 7 test jobs passed |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
Rebased and fixed. |
CI started |
Test run: SUCCESSSummary: 7 of 7 test jobs passed |
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.
Approved
Summary of changes
This PR adds the ability to configure the pins of the S2LP driver for any target (inside Mbed OS or custom target) using the standard
mbed_lib.json
andmbed_app.json
config files.Additionally, the MTB_STM_S2LP and MTB_STM_S2LP_CT targets are removed as are not supported in Mbed OS 6, and thus making the S2LP driver independent of targets.
Impact of changes
Note users can continue to use the 5.15 branch.
For Mbed OS 6, it should be possible to use the default pin config without changes (apart from MTBs).
Custom pin configuration can be done as shown next.
Migration actions required
Developers need to create a
mbed_app.json
(or other json config) including the pin configuration for their target.An example of application configuration for the S2LP driver is shown here:
https://github.com/MarceloSalazar/mbed-os-example-mesh-minimal/blob/S2LP_cleanup/configs/mesh_wisun_S2LP.json#L34-L50
The driver can be initialized as follow:
Documentation
None
Pull request type
Test results
Note that mbed-os-example-mesh-minimal and nanostack-border-router applications compile ok when using provided
mesh_wisun_S2LP.json
config:Reviewers