Skip to content

Do we have to open an interrupt in order for the PRU to work? #65

@giuliomoro

Description

@giuliomoro

int prussdrv_open(unsigned int host_interrupt) expects that we pass an interrupt number, but what if our program does not need interrupts at all, or if these are handled differently? However, if we do not call prussdrv_open, then the internal __prussdrv_memmap_init() will not be called and so further calls may fail.
So currently, my workaround is to call prussdrv_open(PRU_EVTOUT_0) and then ignore the interrupt. I'd argue we should not be forced to open an interrupt fd.
Or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions