Skip to content

First interrupt after attachInterrupt #253

Description

@fulda1

Hi,

I'm using interrupt on change in my project. Unfortunately, pin is in use before interrupt is attached. That mean, first ISR call is instantly after attachInterrupt command. As per datasheet, interrupt flag is in EXTI->INTFR. That can be cleared by write 1. I do not know, how can I clear it proper way. I'm running on CH32V203K8. Did try code like this:

EXTI->INTFR = 0xFFFF;
attachInterrupt(LN_Rx_PIN, GPIO_Mode_IN_FLOATING, LN_Rx_Start, EXTI_Mode_Interrupt, EXTI_Trigger_Falling);

but no effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions