Skip to content

GPIO IRQ callback #23

@jpmandon

Description

@jpmandon

Hi Michael

in sdk1.5.1 branch

I tested the gpio_set_irq_enabled_with_callback function and I encountered a problem:

  • First added irq_handler_chain.S.obj in the units-sdk1.5.5 folder ( it could be a future commit )
  • now I have a SIGTRAP error when the gpio_set_irq_enabled_with_callback function is executed.
    this is my code:
    // set IRQ enabled on signalPin and falling edge
    gpio_set_irq_enabled_with_callback(
    signalPin,
    uint32(TGPIO_IRQ_level.GPIO_IRQ_EDGE_FALL),
    true,
    @signalHandlerTreatment
    );

same problem when I try to use the gpio_set_irq_callback function. It seems that the problem is with the pointer of the callback.

any idea ?
Many thanks by advance.
Jean-Pierre

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