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

GR PEACH strange behavior when using InterruptIn #3694

Closed
sarahmarshy opened this issue Feb 3, 2017 · 5 comments
Closed

GR PEACH strange behavior when using InterruptIn #3694

sarahmarshy opened this issue Feb 3, 2017 · 5 comments

Comments

@sarahmarshy
Copy link
Contributor

#include "mbed.h"

DigitalOut led1(LED1);
InterruptIn irq_data(P2_14); 

// main() runs in its own thread in the OS
// (note the calls to wait below for delays)
int main() {
    while (true) {
        led1 = !led1;
        wait(0.5);
    }
}

This will prevent the LED from blinking. This pin is listed as an acceptable GPIO IRQ pin here. It does not print the warning "pinmap not found for peripheral" that would indicate that the pin is not supported for this operation.

Should it be removed from this list?

Inspired by this question: https://developer.mbed.org/questions/76869/GR_Peach-libraries-broken/#answer12005

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 6, 2017

cc @TomoYamanaka

@TomoYamanaka
Copy link
Contributor

TomoYamanaka commented Feb 8, 2017

@sarahmarshy

I will check this issue, so please wait a moment.

@TomoYamanaka
Copy link
Contributor

@sarahmarshy

Sorry for this late reply.
I identified the cause for this issue. It seems not enough the contents that I modified in #3289.
I will PR against this issue soon, contact you after I PR.

TomoYamanaka added a commit to TomoYamanaka/mbed-os that referenced this issue Feb 20, 2017
I modified the bug in PR ARMmbed#3289. But It seems not enough the changes.
For the reason, It occured the following issue.
ARMmbed#3694
So I reviewed and re-modified about the setting of initial value of interrupt edge in "gpio_irq_init".
@TomoYamanaka
Copy link
Contributor

@sarahmarshy

PR about this issue is here.
#3803

adbridge pushed a commit that referenced this issue Feb 24, 2017
I modified the bug in PR #3289. But It seems not enough the changes.
For the reason, It occured the following issue.
#3694
So I reviewed and re-modified about the setting of initial value of interrupt edge in "gpio_irq_init".
@ghost
Copy link

ghost commented Oct 27, 2017

GitHib issue review: Closed due to inactivity. Please re-file if critical issues found.

@ghost ghost closed this as completed Oct 27, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants