-
Notifications
You must be signed in to change notification settings - Fork 3k
Add a gpio-irq pinmap #11074
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
Add a gpio-irq pinmap #11074
Conversation
@fkjagodzinski, thank you for your changes. |
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
Test run: FAILEDSummary: 3 of 4 test jobs failed Failed test jobs:
|
@fkjagodzinski Please fix the build failures
Failed builds (at least):
|
6f3a779
to
b92c653
Compare
Build failures should be fixed now. @lrusinowicz Could you review the patch I made for |
@SeppoTakalo could you restart that Travis job please? |
Use the gpio_irq_pinmap() for GPIO-IRQ testing.
Include the gpio_irq_api header to fix build failures.
The use of `gpio_irq_event` & `gpio_irq_handler` in `gpio_irq_s` creates a circular dependency. hal/gpio_irq_api.h needs targets/TARGET_Cypress/TARGET_PSOC6_FUTURE/TARGET_CY8C63XX/device.h, that needs targets/TARGET_Cypress/TARGET_PSOC6_FUTURE/objects.h, that again needs hal/gpio_irq_api.h, before the types are defined. Remove `#include "gpio_irq_api.h"` directive from objects.h and change the types of `gpio_irq_s` members.
b92c653
to
8448640
Compare
Rebased to current master (c5c7458) and resolved conflicts. |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
This patch adds a
gpio_irq_pinmap()
function that is used for GPIO IRQ testing with the FPGA shield. This is a follow-up to #10644; the default implementation returns a PinMap that is exactly the same as GPIO PinMap. Every target has to override this weak implementation to provide a correct list of pins to test.I also updated the
tests-mbed_hal_fpga_ci_test_shield-gpio_irq
test to make use ofgpio_irq_pinmap()
.Pull request type
Reviewers
@mmahadevan108 @c1728p9 @maclobdell @maciejbocianski
Release Notes
Add a weak
gpio_irq_pinmap()
, that every target has to override, to provide a set of pins for GPIO IRQ testing.