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