Skip to content

GR PEACH strange behavior when using InterruptIn #3694

Closed
@sarahmarshy

Description

@sarahmarshy
#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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions