-
Notifications
You must be signed in to change notification settings - Fork 3k
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
HAL: Add a get_capabilities() function to GPIO API #12477
HAL: Add a get_capabilities() function to GPIO API #12477
Conversation
Add the gpio_get_capabilities() to GPIO HAL API. Add a default, weak implementation, that every target can override.
Make use of the gpio_get_capabilities() function to skip unsupported input pull modes when testing with the FPGA-CI-test-shield.
Remove the gpio_pinmap() for this target. GPIO tests are skipped based on pin's capabilities.
TARGET_NANO100, TARGET_NUC472 & TARGET_M451 do not support input pull mode configuration.
@fkjagodzinski, thank you for your changes. |
@fkjagodzinski Thanks for your reminding. That's fine. |
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.
Everything looks good here. Just wondering if you can provide the test results as a part of this PR?
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
That would be great. This is otherwise ready. Let us know how was this tested |
|
And in case of
|
Summary of changes
Add the
gpio_get_capabilities()
function to the GPIO HAL API to skip the unsupported input pull modes when testing with the FPGA-CI-test-shield.Updated tests:
tests-mbed_hal_fpga_ci_test_shield-gpio
.Impact of changes
Extend the GPIO HAL API with the
gpio_get_capabilities()
function. Unsupported input pull modes are skipped during the greentea tests.Migration actions required
A default, weak implementation is provided. Every target has to override this weak implementation to provide the correct
gpio_capabilities_t
.Documentation
None
Pull request type
Test results
Reviewers
@ccli8, @wajahat-ublox, @mprse, @jamesbeyond